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