print(*{"watermelon","beachball","shrinebell"}-set([input(),input()]))