/* -*- coding: utf-8 -*- * * 2599.cc: No.2599 Summer Project - yukicoder */ #include #include #include using namespace std; /* constant */ const int N = 3; const int MAX_L = 16; const char ss[N][MAX_L] = { "watermelon", "beachball", "shrinebell" }; /* typedef */ /* global variables */ char s[MAX_L], t[MAX_L]; int cs[N]; /* subroutines */ /* main */ int main() { scanf("%s%s", s, t); for (int i = 0; i < N; i++) if (! strcmp(s, ss[i]) || ! strcmp(t, ss[i])) cs[i]++; for (int i = 0; i < N; i++) if (! cs[i]) puts(ss[i]); return 0; }