#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); set st; st.insert("watermelon"); st.insert("beachball"); st.insert("shrinebell"); string s, t; cin >> s >> t; st.erase(s); st.erase(t); cout << *st.begin() << '\n'; return 0; }