# https://yukicoder.me/problems/no/2599 def main(): words = set() for _ in range(2): words.add(input()) can = [ "watermelon", "beachball", "shrinebell" ] for c in can: if c not in words: print(c) return if __name__ == "__main__": main()