s = ["watermelon", "beachball", "shrinebell"] s.remove(input()) s.remove(input()) print(s[0])