#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char a[100];
char b[100];
cin>>a>>b;
int la = strlen(a);
int lb = strlen(b);
int p = -1;
for(int i = 0;i<la;i++)
{
bool f = true;
for(int j =0;j<lb;j++)
{
if(a[i+j]!= b[j])
{
f = false;
break;
}
}
if(f == true)
{
p = i;
break;
}
}
cout<<p;
return 0;
}
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char a[100];
int p,t;
cin>>a>>p>>t;
int la =strlen(a);
for(int i =p;i<la;i++)
{
a[i] =a[i+t];
}
a[la-t]='\0';
la = la-t;
cout<<a;
return 0;
}
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char a[100],b[100];
int p;
cin>>a>>b>>p;
int la =strlen(a);
int lb =strlen(b);
for(int i =0;i<lb;i++)
{
a[i+lb] =a[i];
}
a[la+lb]='\0';
la =la =+lb;
for(int i =0;i<lb;i++)
{
a[p+i] =b[i];
}
cout<<a;
return 0;
}
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
char a[510],b[510];
int n;
cin>>n>>a>>b;
int cnt=0;
int lab =strlen(a);
for(int i =0;i<lab;i++)
{
if(a[i]==b[i])
{
cnt++;
}
}
float s =1.0*cnt/lab;
if(s>n)
{
cout<<"yes";
}
else
{
cout<<"no";
}
return 0;
}