S = input() T = input() A = ["watermelon","beachball","shrinebell"] for a in A: if a != S and a != T: print(a)