s = input() t = input() ls = ["watermelon","beachball","shrinebell"] for i in ls: if i != s and i != t: print(i)