#include #include int main() { char a_str[200], b_str[200]; int two_eggs(char *, char *); while (gets(a_str) != NULL) { gets(b_str); puts(two_eggs(a_str, b_str) ? "YES" : "NO"); } return EXIT_SUCCESS; }