S = input() T = input() for i in ["shrinebell", "beachball", "watermelon"]: if i not in [S, T]: print(i)