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