#include <iostream>
#include <vector>

using namespace std;

int main(){
    string S,T;
    cin>>S>>T;
    int s,t;
    for(s=0,t=0;s<S.size();s+=2){
        while(t<T.size()&&T[t]!=S[s])t++;
        if(t>=T.size()) break;
        t++;
    }
    if(s>=S.size()){
        cout<<"Yes"<<endl;
        return 0;
    }
    for(s=1,t=0;s<S.size();s+=2){
        while(t<T.size()&&T[t]!=S[s])t++;
        if(t>=T.size()) break;
        t++;
    }
    if(s>=S.size()){
        cout<<"Yes"<<endl;
        return 0;
    }
    cout<<"No"<<endl;
    return 0;
}
### Prompt

Your task is to create a Cpp solution to the following problem:

Example

Input

acmicpc
tsukuba


Output

No

### Response

```cpp
#include <iostream>
#include <vector>

using namespace std;

int main(){
    string S,T;
    cin>>S>>T;
    int s,t;
    for(s=0,t=0;s<S.size();s+=2){
        while(t<T.size()&&T[t]!=S[s])t++;
        if(t>=T.size()) break;
        t++;
    }
    if(s>=S.size()){
        cout<<"Yes"<<endl;
        return 0;
    }
    for(s=1,t=0;s<S.size();s+=2){
        while(t<T.size()&&T[t]!=S[s])t++;
        if(t>=T.size()) break;
        t++;
    }
    if(s>=S.size()){
        cout<<"Yes"<<endl;
        return 0;
    }
    cout<<"No"<<endl;
    return 0;
}
```