S = {"watermelon", "beachball", "shrinebell"} S.remove(input()) S.remove(input()) print(S.pop())