import java.io.*;
import java.util.Random;
class Test{
public static void main(String args[]){
int a;
Random r = new Random();
do{
a = r.nextInt() % 30000; // 乱数を作る
System.out.println(a);
// }while( a != 10 && a <= 20000 );
}while( a <= 20000 && a != 10 );
}
}