#include <bits/stdc++.h>
using namespace std;
inline void sfr(int *a) {
  char c = 0;
  while (c < 33) c = fgetc(stdin);
  *a = 0;
  while (c > 33) {
    *a = *a * 10 + c - '0';
    c = fgetc(stdin);
  }
}
inline void sfp(int a) {
  char c[1000];
  sprintf(c, "%d", a);
  puts(c);
}
int main() {
  int n;
  cin >> n;
  ;
  string s = "<3", s1, t;
  for (int i = 0; i < n; i++) {
    cin >> s1;
    s = s + s1 + "<3";
  }
  cin >> t;
  int i = 0, j = 0;
  while (i < s.length() && j < t.length()) {
    if (s[i] == t[j]) {
      i++;
      j++;
    } else {
      j++;
    }
  }
  if (i == s.length()) {
    cout << "yes" << endl;
  } else {
    cout << "no" << endl;
  }
}
