#include <bits/stdc++.h>
using namespace std;
char strs[1100000];
char str[1100000];
char in[1100000];
int main() {
  int N, i, j, k;
  scanf("%d", &N);
  strs[0] = '\0';
  j = 0;
  for (i = 0; i < N; ++i) {
    strs[j++] = '<';
    strs[j++] = '3';
    scanf("%s", in);
    for (k = 0; in[k]; ++k) strs[j++] = in[k];
  }
  strs[j++] = '<';
  strs[j++] = '3';
  strs[j++] = '\0';
  scanf("%s", str);
  j = 0;
  for (i = 0; strs[i]; ++i) {
    if (str[j] == '\0' && strs[i] != '\0') {
      printf("no\n");
      return 0;
    }
    while (str[j]) {
      if (str[j] == strs[i]) break;
      ++j;
    }
    if (strs[i] == str[j])
      ++j;
    else {
      printf("no\n");
      return 0;
    }
  }
  printf("yes\n");
  return 0;
}
