#include<iostream> #include<cstdio> #include<cstring> using namespace std; char s[100005],t[100005]; int main(){ while(scanf("%s%s",s,t)==2){ int i,j,lens = strlen(s),lent = strlen(t); for(i=0,j=0;i<lens&&j<lent;){ if(s[i]==t[j]){ i++;j++; } else{ j++; } } if(i==lens) printf("Yes\n"); else printf("No\n"); } return 0; }