ans = ["watermelon","beachball","shrinebell"] for _ in range(2): X = input() ans.remove(X) print(ans[0])