a = set(['beachball', 'watermelon', 'shrinebell']) a.remove(input()) a.remove(input()) print(*a)