#include <iostream> #include <string> #include <vector> #include <algorithm> #include <utility> #include <map> #include <set> #include <queue> #include <iomanip> #include <cstring> #include <stack> #include <atcoder/all> using namespace std; using namespace atcoder; typedef long long ll; #define rep(i,n) for (int i = 0; i < int(n);i++) int main(){ set<string> 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() << endl; return 0; }