#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  string s, str;
  int i, k, l, h, n;
  cin >> n;
  vector<string> v(n + 1);
  for (i = 1; i <= n; i++) cin >> v[i];
  cin >> s;
  if (s.size() < 5) {
    cout << "no";
    return 0;
  }
  k = 0, h = 0;
  while (true) {
    if (!h)
      if (s[k] == '<') h = 1;
    if (h)
      if (s[k] == '3') break;
    k++;
    if (k == s.size()) {
      cout << "no";
      return 0;
    }
  }
  for (i = 1; i <= n; i++) {
    str = v[i];
    int h = 0;
    while (true) {
      if (s[k] == str[h]) h++;
      if (h == str.size()) break;
      k++;
      if (k == s.size()) {
        cout << "no";
        return 0;
      }
    }
    h = 0;
    while (true) {
      if (!h)
        if (s[k] == '<') h = 1;
      if (h)
        if (s[k] == '3') break;
      k++;
      if (k == s.size()) {
        cout << "no";
        return 0;
      }
    }
    k++;
    if (i != n && k == s.size()) {
      cout << "no";
      return 0;
    }
  }
  cout << "yes";
  return 0;
}
