#include <stdio.h>
int main(void) {
int x,a,b=3,c,d,e,f;
for(a=1;a<=(x-3);a++)
{
c=2;
e=0;
for(d=3;d<=b;d++)
{
if(b%c==0)
{
e++;
break;
}
c++;
}
if(e==0)
{
}
b++;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgeCxhLGI9MyxjLGQsZSxmOwoJc2NhbmYoIiVkIiwmeCk7CglwcmludGYoIiVkPSIseCk7Cglmb3IoYT0xO2E8PSh4LTMpO2ErKykKCXsKCQljPTI7CgkJZT0wOwoJCWZvcihkPTM7ZDw9YjtkKyspCgkJewoJCQlpZihiJWM9PTApCgkJCXsKCQkJCWUrKzsKCQkJCWJyZWFrOwoJCQl9CgkJCWMrKzsKCQl9CgkJaWYoZT09MCkKCQl7CgkJCXByaW50ZigiJWRcbiIsYik7CgkJfQoJCgoJCWIrKzsKCX0KCXJldHVybiAwOwp9Cg==