a=["watermelon","beachball","shrinebell"]
b=[]
for i in range(2):
  b.append(input())
for i in a:
  if i in b:
    continue
  else:
    print(i)