#include <iostream>
#include <cstring>
using namespace std;
int main() {
char a[1000],b[1000];
int c;
bool d;
while(cin>>a>>b){
c=0;
d=0;
for(int x=0;x<strlen(b);x++){
if(a[c]==b[x]){
c++;
if(c==strlen(a)){
d=1;
break;
}
}
}
if(d==0){
cout<<"No"<<endl;
}else{
cout<<"Yes"<<endl;
}
}
system("pause");
return 0;
}
沒有留言:
張貼留言