#include <bits/stdc++.h>
using namespace std;
string i2s(int x) {
  stringstream ss;
  ss << x;
  return ss.str();
}
int s2i(string str) {
  istringstream ss(str);
  int nro;
  ss >> nro;
  return nro;
}
char str[100005];
int main() {
  int n;
  scanf("%d\n", &n);
  string second = "";
  while (n--) {
    scanf("%s\n", str);
    second += "<3" + (string)str;
  }
  second += "<3";
  scanf("%s\n", str);
  int pos = 0;
  for (int i = 0; str[i]; i++) {
    if (second[pos] == str[i]) {
      pos++;
    }
  }
  if (second.size() == pos)
    printf("yes\n");
  else
    printf("no\n");
  return 0;
}
