#include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); string S, T; cin >> S >> T; if (S == "watermelon") { if (T == "beachball") cout << "shrinebell\n"; else cout << "beachball\n"; } else if (S == "beachball") { if (T == "watermelon") cout << "shrinebell\n"; else cout << "watermelon\n"; } else { if (T == "watermelon") cout << "beachball\n"; else cout << "watermelon\n"; } return 0; }