#include <iostream>
using namespace std;

int main(){
    string s,t;
    cin >> s >> t;

    bool yes_e = true, yes_o = true;
    int idx_e=-1, idx_o=-1;
    int len = t.length();
    for(int i=0; i<(int)s.length(); i+=2){
        idx_e++;
        while(idx_e<len && t[idx_e]!=s[i]) idx_e++;
        if(idx_e>=len){
            yes_e = false;
            break;
        }
    }
    for(int i=1; i<(int)s.length(); i+=2){
        idx_o++;
        while(idx_o<len && t[idx_o]!=s[i]) idx_o++;
        if(idx_o>=len){
            yes_o = false;
            break;
        }
    }

    if(yes_e || yes_o){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    return 0;
}
### Prompt

Please create a solution in cpp to the following problem:

Example

Input

acmicpc
tsukuba


Output

No

### Response

```cpp
#include <iostream>
using namespace std;

int main(){
    string s,t;
    cin >> s >> t;

    bool yes_e = true, yes_o = true;
    int idx_e=-1, idx_o=-1;
    int len = t.length();
    for(int i=0; i<(int)s.length(); i+=2){
        idx_e++;
        while(idx_e<len && t[idx_e]!=s[i]) idx_e++;
        if(idx_e>=len){
            yes_e = false;
            break;
        }
    }
    for(int i=1; i<(int)s.length(); i+=2){
        idx_o++;
        while(idx_o<len && t[idx_o]!=s[i]) idx_o++;
        if(idx_o>=len){
            yes_o = false;
            break;
        }
    }

    if(yes_e || yes_o){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    return 0;
}
```