#include<iostream>
#include<string>
using namespace std;
string S,T,U,V;
bool solve(string a1,string a2){
	int H=0;
	for(int i=0;i<a2.size();i++){
		if(a1[H]==a2[i])H++;
		if(H==a1.size())return true;
	}
	return false;
}
int main(){
	cin>>S>>T;
	for(int i=0;i<S.size();i++){
		if(i%2==0)U+=S[i];
		if(i%2==1)V+=S[i];
	}
	bool OK=false;
	if(solve(U,T)==true || solve(V,T)==true)OK=true;
	if(OK==true)cout<<"Yes"<<endl;
	else{cout<<"No"<<endl;}
	return 0;
}
### Prompt

Your challenge is to write a cpp solution to the following problem:

Example

Input

acmicpc
tsukuba


Output

No

### Response

```cpp
#include<iostream>
#include<string>
using namespace std;
string S,T,U,V;
bool solve(string a1,string a2){
	int H=0;
	for(int i=0;i<a2.size();i++){
		if(a1[H]==a2[i])H++;
		if(H==a1.size())return true;
	}
	return false;
}
int main(){
	cin>>S>>T;
	for(int i=0;i<S.size();i++){
		if(i%2==0)U+=S[i];
		if(i%2==1)V+=S[i];
	}
	bool OK=false;
	if(solve(U,T)==true || solve(V,T)==true)OK=true;
	if(OK==true)cout<<"Yes"<<endl;
	else{cout<<"No"<<endl;}
	return 0;
}
```