#include <bits/stdc++.h>
using namespace std;
char s[100005 * 2];
char ans[100005 * 2];
char a[100005 * 2];
int main() {
  int n;
  while (scanf("%d", &n) != -1) {
    int k = 2;
    ans[0] = '<';
    ans[1] = '3';
    for (int i = 0; i < n; i++) {
      scanf("%s", s);
      int len = strlen(s);
      for (int j = 0; j < len; j++) {
        ans[k++] = s[j];
      }
      ans[k++] = '<';
      ans[k++] = '3';
    }
    ans[k++] = '\0';
    scanf("%s", s);
    int len = strlen(s);
    int K = 0;
    for (int i = 0; i < len && K < k; i++) {
      if (ans[K] == s[i]) K++;
    }
    if (K == k - 1)
      printf("yes\n");
    else {
      printf("no\n");
    }
  }
  return 0;
}
