#include <bits/stdc++.h>
using namespace std;
const int N = 1e5;
string t, s[N];
int main() {
  int n;
  cin >> n;
  cin >> s[0];
  s[0] = "<3" + s[0] + "<3";
  for (int i = 1; i < n; i++) {
    cin >> s[i];
    s[i] += "<3";
  }
  cin >> t;
  int j = 0, k = 0;
  for (int i = 0; i < (int)t.size(); i++) {
    if (t[i] == s[j][k]) {
      if (j == n - 1 && k == s[j].size() - 1) return cout << "yes", 0;
      if (k == s[j].size() - 1) {
        k = 0;
        j++;
      } else
        k++;
    }
  }
  cout << "no";
  return 0;
}
