while let line = readLine() {
	let n = Int(line)
	if n == 42 {
		break
	}
	print(n!)
}