#include <bits/stdc++.h>
int main(void) {
  char pattern[300003], text[100001];
  int i, j, n, plen, tlen;
  scanf("%d", &n);
  pattern[0] = '<';
  pattern[1] = '3';
  plen = 2;
  while (n--) {
    scanf("%s", pattern + plen);
    plen += strlen(pattern + plen);
    pattern[plen++] = '<';
    pattern[plen++] = '3';
  }
  scanf("%s%n", text, &tlen);
  i = j = 0;
  while (i != plen && j != tlen) {
    if (pattern[i] == text[j]) i++;
    j++;
  }
  puts(i == plen ? "yes" : "no");
  return 0;
}
