s = input() t = input() ss = {"watermelon", "beachball", "shrinebell"} ss.remove(s) ss.remove(t) print(*ss)