#include <stdio.h>

int main () {

int three = 0;
int five = -2;

for(int i = 3; i < 100; i+=2) {

printf("%d", i);

three++;
five++;

if(three == 1 && i != 3) {

i+=2;

three = 0;
}

else if(five == 5) {

five = 0;

i+=2;
}
}

return 0;
}