#include <bits/stdc++.h>
using namespace std;
string s, a;
int main() {
  a = "<3";
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> s;
    a += s + "<3";
  }
  cin >> s;
  n = 0;
  int l = s.size();
  for (int i = 0; i < l; i++) {
    n += (s[i] == a[n]);
  }
  if (n == a.size())
    cout << "yes" << endl;
  else
    cout << "no" << endl;
  return 0;
}
