line = ["watermelon","beachball","shrinebell"] s = input() t = input() che = [s,t] for i in line: if i not in che: print(i)