print(*(set('watermelon','beachball','shrinebell')-set(input().split())))