#include
void dis(int m, int n) {
int i, j,flag = 1, count = 0, sum = 0;
for (i = m; i <= n; i++) {
flag = 1;
for (j = 2; j < i; j++) {
if (i % j == 0) {
flag = 0;
}
}
if ((flag== 1) && (i != 1)) {
printf("(%d)", i);
sum += i;
count++;
}
}
printf("\ncount = %d, sum = %d",count, sum);
}
void main() {
int m, n;
scanf("%d,%d",&m,&n);
dis(m,n);
}