#include <stdio.h>
int main() {
int x,y,i,p,a;
printf("vuvedete x taka che toi da e po maluk ot y\n" ,x);
scanf("%d",&x);
printf("vuvedete y taka che toi da e po golqm ot x\n" ,y);
scanf("%d",&y);
i=x;

	
		
		for (i=x;i<=y;i++) 
		{
			if (i%10==3) break; 
		}
		if (i==3) printf("%d" ";" ,i);
		for (a=i;a<=y;a+=10)
		 {
			for (p=3;p<=i;p=p+2) 
			{
				if (a%p==0) break;
					else 
					{
						printf("%d" ";" ,a) ;
						 break;
					}	
			}
		}	
		
	
	
			
	



return 0;
}
