#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (scanf("%d", &n) != EOF) {
    string s = "<3", t;
    for (int i = 0; i < n; i++) {
      cin >> t;
      s += t + "<3";
    }
    char s2[100000];
    scanf("%s", s2);
    int cnt = 0;
    for (int i = 0; s2[i] != '\0'; i++) {
      if (s[cnt] == s2[i]) cnt++;
    }
    if (cnt == s.size())
      printf("yes\n");
    else
      printf("no\n");
  }
  return 0;
}
