s = str(eval(input()))

print((s[0]+s[1]+s[2]))
s = str(eval(input()))

print((s[0:3]))

s = str(eval(input()))
print((s[0] + s[1] + s[2]))

s = str(eval(input()))
print((s[0:3]))

-print((s[0] + s[1] + s[2])) +print((s[0:3]))