#include using namespace std; long long mod = 998244353; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); set S = {"watermelon","beachball","shrinebell"}; string s,t; cin >> s >> t; S.erase(s),S.erase(t); cout << *S.begin() << endl; }