#include <bits/stdc++.h>
const int INF = (int)1e9;
const int NINF = -(int)1e9;
const int mod = (int)1e9 + 7;
const double PI = acos(-1.0);
const double EPS = 1e-11;
using namespace std;
template <class T>
T gcd(T a, T b) {
  while (b) b ^= a ^= b ^= a %= b;
  return a;
}
template <class T>
T lcd(T a, T b) {
  return abs(a * b) / gcd(a, b);
}
void init() {}
int main() {
  int n, l, i, j, m, k, l1;
  cin >> n;
  string str, temp = "";
  vector<string> v;
  for (int i = 0; i < n; i++) {
    cin >> str;
    temp += "<3" + str;
  }
  temp += "<3";
  cin >> str;
  l = str.length();
  l1 = temp.length();
  i = 0;
  j = 0;
  int ind = 0;
  while (i < l1) {
    while (j < l) {
      if (str[j] == temp[i]) {
        ind++;
        j++;
        break;
      }
      j++;
    }
    i++;
  }
  if (ind != l1)
    cout << "no\n";
  else
    cout << "yes\n";
  return 0;
}
