#include using namespace std; int main() { string S, T; cin >> S >> T; set s = {"watermelon", "beachball", "shrinebell"}; s.erase(S); s.erase(T); cout << *s.begin() << endl; return 0; }