d = ['watermelon', 'beachball', 'shrinebell'] d.remove(input()) d.remove(input()) print(d[0])