// Source: https://usaco.guide/general/io #include #include using namespace std; typedef long long ll; typedef vector vi; typedef pair ii; typedef vector vii; typedef long double ld; typedef pair pll; #define FOR(i, a, b) for(int i = a; i < b; i++) #define ROF(i, a, b) for(int i = a; i >= b; i--) #define ms memset #define pb push_back #define fi first #define se second #define inp(n, a) vector a;for(int i=0;i>now;a.pb(now);} #define all(a) a.begin(),a.end() #define show(a) for(long long loppls=0;loppls<(long long)(a.size()-1);loppls++)cout< 0) { if (b & 1) res = res * a; a = a * a; b >>= 1; } return res; } ll sum2(ll a, ll l, ll n){return (n*(a+l))/2;} ll ceil2(ll a, ll b){return (a+b-1)/b;} const long long INF=1e16,MAX=300020,MOD=1e9+7; void solve() { string s,t;cin>>s>>t; if(s!="watermelon"&&t!="watermelon")cout<<"watermelon"; if(s!="shrinebell"&&t!="shrinebell")cout<<"shrinebell"; if(s!="beachball"&&t!="beachball")cout<<"beachball"; } int main() { ios::sync_with_stdio(false); cin.tie(NULL); solve(); }