fork download
using System;
public class Test
{
	public static void Main()
	{
		int n;
		while ((n = int.Parse(Console.ReadLine()))!=42)
			Console.WriteLine(n);
	}
}
Success #stdin #stdout 0.03s 37008KB
stdin
1
2
10
42
11
stdout
1
2
10