#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long int a;
  string s, sb, ans;
  cin >> a;
  s += "<3";
  while (a--) {
    cin >> sb;
    s += sb;
    s += "<3";
  }
  cin >> ans;
  long long int sz = ans.size() - 1, j = 0, cnt = 0;
  ;
  for (long long int i = 0; i <= sz; i++) {
    if (ans[i] == s[j]) {
      cnt++;
      j++;
    }
  }
  if (cnt == s.size())
    cout << "yes" << endl;
  else
    cout << "no" << endl;
  return 0;
}
