#include <bits/stdc++.h>
using namespace std;
long long add[1234567], ans, a, b, c[1234567], c1[123][123], d[1234567], e, i,
    j, n, k, x, y, l, r;
map<pair<long long, long long>, long long> m;
vector<long long> v1[1234567], v, vma, vmi;
vector<long long>::iterator it;
string s, s1[1234567];
multiset<long long> ms;
set<char> se;
queue<long long> q;
deque<long long> dq;
pair<long long, long long> p[123456];
priority_queue<long long> pq;
int main() {
  ios_base::sync_with_stdio();
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  s = "<3";
  while (n--) {
    string second;
    cin >> second;
    s += second;
    s += "<3";
  }
  string sss;
  cin >> sss;
  for (i = 0, j = 0; i < s.size(); i++) {
    a = 0;
    while (j < sss.size()) {
      if (s[i] == sss[j]) {
        a = 1;
        break;
      }
      j++;
    }
    if (a == 1) {
      j++;
    } else {
      break;
    }
  }
  if (i == s.size()) {
    cout << "yes";
  } else {
    cout << "no";
  }
}
