lis = ["watermelon","beachball","shrinebell"] s = set(lis) for i in range(2): t = input() s.discard(t) s = list(s) print(s[0])