#include <bits/stdc++.h>
using namespace std;
int b;
string d;
int a;
vector<string> e;
int main() {
  int f, g;
  int c = -1;
  cin >> a;
  e.resize(a);
  for (f = 0; f < a; f++) cin >> e[f];
  cin >> d;
  b = d.length();
  for (f = 0; f <= a; f++) {
    while (1) {
      if (d[++c] == '<') break;
      if (c == b) {
        cout << "no";
        return 0;
      }
    }
    while (1) {
      if (d[++c] == '3') break;
      if (c == b) {
        cout << "no";
        return 0;
      }
    }
    if (f < a) {
      for (g = 0; g < e[f].length(); g++) {
        while (1) {
          if (d[++c] == e[f][g]) break;
          if (c == b) {
            cout << "no";
            return 0;
          }
        }
      }
    }
  }
  cout << "yes";
  return 0;
}
