#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long int n, cnt = 0, j = 0;
  cin >> n;
  string input, arr[n];
  vector<char> v;
  for (unsigned int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  v.push_back('<');
  v.push_back('3');
  for (unsigned int i = 0; i < n; i++) {
    for (unsigned int j = 0; j < arr[i].size(); j++) {
      v.push_back(arr[i].at(j));
    }
    v.push_back('<');
    v.push_back('3');
  }
  cin >> input;
  for (unsigned int i = 0; i < v.size(); i++) {
    while (j < input.size()) {
      if (v[i] == input.at(j)) {
        cnt++;
        j++;
        break;
      }
      j++;
    }
  }
  if (cnt == v.size()) {
    cout << "yes";
  } else {
    cout << "no";
  }
}
