#include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); string S, T; cin >> S >> T; if (S > T) swap(S, T); if (S[0] == 'b' && T[0] == 's') cout << "watermelon" << endl; else if (S[0] == 'b' && T[0] == 'w') cout << "shrinebell" << endl; else cout << "beachball" << endl; return 0; }