#include <bits/stdc++.h>
using namespace std;
char str1[400200], str2[400200];
char str[100100];
int n, tot, m;
int main() {
  while (~scanf("%d", &n)) {
    str1[1] = '<';
    str1[2] = '3';
    tot = 2;
    for (int i = 0; i < n; i++) {
      scanf("%s", str);
      m = strlen(str);
      for (int k = 0; k < m; k++) {
        str1[++tot] = str[k];
      }
      str1[++tot] = '<';
      str1[++tot] = '3';
    }
    int p, q;
    scanf("%s", str2);
    m = strlen(str2);
    bool flag = false;
    p = 1;
    q = 0;
    while (p <= tot) {
      if (q >= m) break;
      while (str2[q] != str1[p] && q < m) q++;
      if (str2[q] == str1[p]) p++;
      q++;
    }
    if (p > tot)
      printf("yes\n");
    else
      printf("no\n");
  }
  return 0;
}
