#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { string S, T; cin >> S >> T; vector u = {"watermelon", "beachball", "shrinebell"}; vector v(3, 0); rep(i, 3) { if (S == u[i]) v[i] = 1; if (T == u[i]) v[i] = 1; } rep(i, 3) if (v[i] == 0) cout << u[i] << endl; return 0; }