#include <bits/stdc++.h>
using namespace std;
int main() {
  long n, i, j;
  std::string tstr, inp;
  cin >> n;
  std::vector<std::string> str;
  str.push_back("<3");
  for (i = 0; i < n; i++) {
    cin >> tstr;
    str.push_back(tstr);
    str.push_back("<3");
  }
  long exp = 0, pos = 0;
  cin >> inp;
  for (i = 0; i < inp.length(); i++) {
    if (inp[i] == str[exp][pos]) {
      pos++;
      if (str[exp].length() == pos) {
        exp++;
        pos = 0;
      }
      if (exp == str.size()) break;
    }
  }
  if (exp == str.size())
    cout << "yes";
  else
    cout << "no";
  return 0;
}
