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