n = 2688

for i in range(n):
	s = input()
	
	if '11' in s:
		print(s)