start_project_summer_flare_protocol =["watermelon","beachball","shrinebell"] S = input() T = input() start_project_summer_flare_protocol.remove(S) start_project_summer_flare_protocol.remove(T) print(start_project_summer_flare_protocol[0])