s = eval(input())

print((s[0:len(s)-8]))
S = eval(input())

print((S[:-8]))
s = eval(input())
print((s[0 : len(s) - 8]))

S = eval(input())
print((S[:-8]))

-s = eval(input()) -print((s[0 : len(s) - 8])) +S = eval(input()) +print((S[:-8]))