#include <bits/stdc++.h>

using namespace std;


int main()
{
  string S, T, A, B;
  cin >> S >> T;
  for(int i = 0; i < S.size(); i++) (i & 1 ? A : B) += S[i];

  auto check = [](string &a, string &b)
  {
    int tail = 0;
    for(int i = 0; i < a.size(); i++) {
      if(a[i] == b[tail])++tail;
      if(tail == b.size()) return (true);
    }
    return (false);
  };

  if(check(T, A) || check(T, B))cout << "Yes" << endl;
  else cout << "No" << endl;


}
### Prompt

Please provide a CPP coded solution to the problem described below:

Example

Input

acmicpc
tsukuba


Output

No

### Response

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

using namespace std;


int main()
{
  string S, T, A, B;
  cin >> S >> T;
  for(int i = 0; i < S.size(); i++) (i & 1 ? A : B) += S[i];

  auto check = [](string &a, string &b)
  {
    int tail = 0;
    for(int i = 0; i < a.size(); i++) {
      if(a[i] == b[tail])++tail;
      if(tail == b.size()) return (true);
    }
    return (false);
  };

  if(check(T, A) || check(T, B))cout << "Yes" << endl;
  else cout << "No" << endl;


}
```