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