#include using namespace std; typedef long long ll; typedef string str; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); str n, m; cin >> n >> m; str w = "watermelon", b = "beachball", s = "shrinebell"; if ((n == w && m == b) || (m == w && n == b)) cout << s; else if ((n == w && m == s) || (m == w && n == s)) cout << b; else cout << w; return 0; }