I=["watermelon","beachball","shrinebell"] I.remove(input()) I.remove(input()) print(*I)