#include<bits/stdc++.h>

using namespace std;

int main(){
	string a;
	string b;
	cin >> a >> b;
	auto contain = [&](string need){
		if(need.empty())return true;
		int itr = 0;
		for(char i:b){
			if(need[itr]==i){
				++itr;
				if(itr==need.size()){
					return true;
				}
			}
		}
		return false;
	};
	string need1 = "";
	string need2 = "";
	for(int i=0;i<a.size();++i){
		if(i&1){
			need1 += a[i];
		}else{
			need2 += a[i];
		}
	}
	cout << ((contain(need1) or contain(need2)) ? "Yes" : "No") << endl;
	return 0;
}


### Prompt

Generate a Cpp solution to the following problem:

Example

Input

acmicpc
tsukuba


Output

No

### Response

```cpp
#include<bits/stdc++.h>

using namespace std;

int main(){
	string a;
	string b;
	cin >> a >> b;
	auto contain = [&](string need){
		if(need.empty())return true;
		int itr = 0;
		for(char i:b){
			if(need[itr]==i){
				++itr;
				if(itr==need.size()){
					return true;
				}
			}
		}
		return false;
	};
	string need1 = "";
	string need2 = "";
	for(int i=0;i<a.size();++i){
		if(i&1){
			need1 += a[i];
		}else{
			need2 += a[i];
		}
	}
	cout << ((contain(need1) or contain(need2)) ? "Yes" : "No") << endl;
	return 0;
}


```