#include<bits/stdc++.h>
using namespace std;
double x,y=0.0,z;
string a;
int main()
{
string k,l;
cin>>z;
cin>>k>>l;
y=1.0/k.size();
x=0;
for(int i=0;i<k.size();i++)
{
if(k[i]==l[i])
{
x+=y;
}
else
x=x-y;
}if(x>=z)
{
cout<<"yes";
}
else
cout<<"no";
}
求助!!