#include<stdio.h>
int main()
{
int m,n;
scanf("%d%d",&m,&n);
int i,j;
int sum=0;
int flag=0;
for(i=m;i<=n;i++)
{
sum=0;
for(j=1;j<i;j++)
if(i%j==0)
sum+=j;
if(sum==1)
{
flag=1;
printf("%d its factors are 1",i);
for(j=2;j<i;j++)
{
if(i%j==0)
printf(",%d",j);
}
putchar('\n');
}
}
if(flag==0)
printf("Not Found!");
return 0;
}