#include char s[102], t[102]; int main() { scanf("%s%s", s, t); if (s[0] != 'w' && t[0] != 'w') printf("watermelon\n"); else if (s[0] != 'b' && t[0] != 'b') printf("beachball\n"); else printf("shrinebell\n"); return 0; }