#include #include int main() { char str1[51], str2[51]; scanf("%50s", str1); scanf("%50s", str2); for (int i = 0; str1[i] != '\0'; i++) { for (int j = 0; str2[j] != '\0'; j++) { if (str1[i] == str2[j]) { printf("yes\n"); return 0; } } } printf("no\n"); return 0;}