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

string s, t, u, v;

bool func(string w){
	int x = 0;
	for(int i=0; i<t.size(); ++i){
		if(x < w.size() && t[i] == w[x]){
			++x;
		}
	}
	if(x == w.size()) return true;
	return false;
}

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	cin >> s >> t;
	for(int i=0; i<s.size(); i+=2) u += s[i];
	for(int i=1; i<s.size(); i+=2) v += s[i];
	if(func(u) || func(v)) cout << "Yes\n";
	else cout << "No\n";
}

### Prompt

Develop a solution in CPP to the problem described below:

Example

Input

acmicpc
tsukuba


Output

No

### Response

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

string s, t, u, v;

bool func(string w){
	int x = 0;
	for(int i=0; i<t.size(); ++i){
		if(x < w.size() && t[i] == w[x]){
			++x;
		}
	}
	if(x == w.size()) return true;
	return false;
}

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	cin >> s >> t;
	for(int i=0; i<s.size(); i+=2) u += s[i];
	for(int i=1; i<s.size(); i+=2) v += s[i];
	if(func(u) || func(v)) cout << "Yes\n";
	else cout << "No\n";
}

```