#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  vector<string> a;
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> s;
    a.push_back(s);
  }
  cin >> s;
  string sm;
  for (int i = 0; i < n; ++i) {
    sm.push_back('<');
    sm.push_back('3');
    for (int j = 0; j < a[i].size(); ++j) {
      sm.push_back(a[i][j]);
    }
  }
  sm.push_back('<');
  sm.push_back('3');
  int ic = sm.size() - 1;
  for (int i = s.size() - 1; i >= 0; --i) {
    if (sm[ic] == s[i]) {
      ic--;
    }
  }
  if (ic != -1) {
    cout << "no";
    return 0;
  }
  cout << "yes";
  return 0;
}
