enum test{a;{for(int r=1;r<3e3;r+=r>9&&r%143==5?15:r%1001%101<8?2:11)System.out.println(r);}}