#include<bits/stdc++.h>
using namespace std;
int main()
{
string a, b;
while(cin >> a >> b)
{
int l1 = a.size();
int l2 = b.size();
int i, c = 0;
for(i=0;i<l2;i++)
{
if(c == l1)
break;
if(a[c] == b[i])
c++;
}
if(c == l1)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
return 0;
}
using namespace std;
int main()
{
string a, b;
while(cin >> a >> b)
{
int l1 = a.size();
int l2 = b.size();
int i, c = 0;
for(i=0;i<l2;i++)
{
if(c == l1)
break;
if(a[c] == b[i])
c++;
}
if(c == l1)
cout << "Yes" << endl;
else
cout << "No" << endl;
}
return 0;
}
Comments
Post a Comment