#include <bits/stdc++.h>
using namespace std;
int find(string &, int, string &, int &, int *);
int main(void) {
  ifstream inFile;
  inFile.open("test.txt");
  int size;
  int i;
  cin >> size;
  string *arr = new string[size];
  for (i = 0; i < size; i++) cin >> arr[i];
  string sms;
  cin >> sms;
  int pos = 0;
  int k;
  string str = "<3";
  for (i = 0; i < size; i++) {
    str += arr[i];
    str += "<3";
  }
  for (i = 0; i < sms.size(); i++)
    if (sms[i] == str[pos]) pos++;
  if (pos == str.size())
    cout << "yes";
  else
    cout << "no";
  return 0;
}
int find(string &sms, int i, string &str, int &pos, int *arr) {
  int k;
  int cur = 0;
  for (k = i; k < sms.size(); k++) {
    if (cur == str.size() - 1) {
      arr[pos] = 1;
      pos++;
      return k;
    }
    if (sms[k] == str[cur]) {
      cur++;
    } else {
      cur = 0;
    }
  }
}
