#include int main() { char str1[256], str2[256]; scanf("%s", &str1); scanf("%s", &str2); if(str1 == "watermelon" || str2 == "watermelon"){ if(str1 == "shrinebell" || str2 == "shrinebell"){ printf("beachball"); }else{ printf("shrinebell"); } }else{ printf("watermelon"); } return 0; }