#include <string>
#include <iostream>
using namespace std;
bool check(string s, string t, string u) {
	int ls = 0, lt = 0;
	for(int i = 0; i < u.size(); i++) {
		if(i % 2 == 0) {
			while(ls <= s.size()) {
				if(ls == s.size()) return false;
				if(u[i] == s[ls]) {
					ls++;
					break;
				}
				ls++;
			}
		}
		else {
			while(lt <= t.size()) {
				if(lt == t.size()) return false;
				if(u[i] == t[lt]) {
					lt++;
					break;
				}
				lt++;
			}
		}
		// cout << i << ' ' << ls << ' ' << lt << endl;
	}
	return true;
}
int main() {
	string s, t;
	cin >> s >> t;
	if(check(s, t, s) || check(t, s, s)) 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 <string>
#include <iostream>
using namespace std;
bool check(string s, string t, string u) {
	int ls = 0, lt = 0;
	for(int i = 0; i < u.size(); i++) {
		if(i % 2 == 0) {
			while(ls <= s.size()) {
				if(ls == s.size()) return false;
				if(u[i] == s[ls]) {
					ls++;
					break;
				}
				ls++;
			}
		}
		else {
			while(lt <= t.size()) {
				if(lt == t.size()) return false;
				if(u[i] == t[lt]) {
					lt++;
					break;
				}
				lt++;
			}
		}
		// cout << i << ' ' << ls << ' ' << lt << endl;
	}
	return true;
}
int main() {
	string s, t;
	cin >> s >> t;
	if(check(s, t, s) || check(t, s, s)) cout << "Yes" << endl;
	else cout << "No" << endl;
	return 0;
}
```