main() { int x=15; while(x<49) { x++; while(x++<25) if(x%3) {x++;break;} else continue; } printf("%d\n",x);