from sys import stdin

for line in stdin:
	n = int(line)
	if n == 4:
		break
	print(n)
