#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string org = "";
  string text = "";
  char tmp[200000];
  scanf("%d\n", &n);
  for (int i = 0; i < n; i++) {
    gets(tmp);
    org = org + "<3" + tmp;
  }
  org = org + "<3";
  gets(tmp);
  text = tmp;
  for (unsigned int i = 0; i < org.length(); i++) {
    while (text.length() >= org.length() && text[i] != org[i]) {
      text.erase(i, 1);
    }
  }
  if (text.length() >= org.length()) {
    printf("yes");
  } else {
    printf("no");
  }
  return 0;
}
