#include #include #include #include #include #include #include #include #include #include #define ll long long #define db double using namespace std; const ll N = 1e5 + 100; ll tt; char a[N],p[N],q[N]; void solve() { scanf("%s",a + 1); scanf("%s",p + 1); scanf("%s",q + 1); bool ans = 1; ll n = strlen(p + 1); ll m = strlen(q + 1); if (n != m) { ans = 0; } else { for (ll i = 1;i <= n;i++) { if (p[i] != q[i]) { ans = 0; break; } } } if (ans) { printf("No\n"); } else { printf("Yes\n"); } } int main() { tt = 1; while(tt) { solve(); tt--; } return 0; }