#include <bits/stdc++.h>
using namespace std;
string str, sstr, tmp;
int n, i, j;
int main() {
  cin >> n;
  sstr = "<3";
  while (n--) {
    cin >> tmp;
    sstr += tmp + "<3";
  }
  cin >> str;
  for (i = j = 0; str[j] != '\0';) {
    if (sstr[i] == '\0') {
      break;
    }
    if (str[j] == sstr[i])
      i++, j++;
    else
      j++;
  }
  int la = sstr.length();
  if (i == la)
    cout << "yes" << endl;
  else
    cout << "no" << endl;
  return 0;
}
