import java.util.Scanner;
public class Print {
public static void main(String[] args) {
for(int i=2;i>=0;i++) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
if(n == 42){
break;
}
if(n>=100) {
break;
}
System.out.println(n);
}
}
}