#include <bits/stdc++.h>
using namespace std;
long long n, k;
string second, t[100005];
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  ++n;
  t[0] = "<3";
  for (int i = 1; i < n; ++i) {
    cin >> t[i];
    t[i] += "<3";
  }
  cin >> second;
  k = 0;
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < t[i].size(); ++j) {
      while (k < second.size() && t[i][j] != second[k]) ++k;
      if (k == second.size()) {
        cout << "no";
        return 0;
      }
      ++k;
    }
  }
  cout << "yes";
  return 0;
}
