#include<bits/stdc++.h>
using namespace std;

// str は t の部分文字列化を判定
bool f(string str, string t){

    int pos = 0;
    for(int i = 0; i < (int)t.size(); i++){
        if(str[pos] == t[i]){
            pos++;
        }

        if(pos == (int)str.size()) return true;
    }

    return false;
}

int main(){

    string s, t; cin >> s >> t;
    string str1 = "";
    string str2 = "";
    for(int i = 0; i < (int)s.size(); i++){
        if(i % 2 == 0) str1 = str1 + s[i];
        if(i % 2 == 1) str2 = str2 + s[i];
    }

    //cout << str1 << " " << str2 << " " << t << endl;
    if(f(str1, t) || f(str2, t)){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    
    return 0;
}

### Prompt

Create a solution in cpp for the following problem:

Example

Input

acmicpc
tsukuba


Output

No

### Response

```cpp
#include<bits/stdc++.h>
using namespace std;

// str は t の部分文字列化を判定
bool f(string str, string t){

    int pos = 0;
    for(int i = 0; i < (int)t.size(); i++){
        if(str[pos] == t[i]){
            pos++;
        }

        if(pos == (int)str.size()) return true;
    }

    return false;
}

int main(){

    string s, t; cin >> s >> t;
    string str1 = "";
    string str2 = "";
    for(int i = 0; i < (int)s.size(); i++){
        if(i % 2 == 0) str1 = str1 + s[i];
        if(i % 2 == 1) str2 = str2 + s[i];
    }

    //cout << str1 << " " << str2 << " " << t << endl;
    if(f(str1, t) || f(str2, t)){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    
    return 0;
}

```