A={"watermelon","beachball","shrinebell"} S=input() T=input() A-={S} A-={T} print(*A)