#include int main(void) { int scan;//scanf警告用 char s[11],t[11];scan=scanf("%s%s",s,t); if(s[0]=='b'&&t[0]=='w')puts("shrinebell"); else if(s[0]=='b'&&t[0]=='s')puts("watermelon"); else if(s[0]=='w'&&t[0]=='b')puts("shrinebell"); else if(s[0]=='w'&&t[0]=='s')puts("beachball"); else if(s[0]=='s'&&t[0]=='b')puts("watermelon"); else if(s[0]=='s'&&t[0]=='w')puts("beachball"); return 0; }