using System;
public class Program
{
public static void Main()
{
int n;
Console.WriteLine("Enter numbers, 42 to exit:");
while ((n = int.Parse(Console.ReadLine())) != 42) {
Console.WriteLine(n);
}
}
}
/*
run:
Enter numbers, 42 to exit:
23
23
7
7
9
9
0
0
3290
3290
42
*/