#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j = 2, k;
  char abc[400009] = "<3", str[100007], def[100009], a, str2[5] = "<3";
  cin >> n;
  scanf("%c", &a);
  while (n--) {
    gets(str);
    i = 0;
    while (str[i] != '\0') abc[j++] = str[i++];
    abc[j++] = '<';
    abc[j++] = '3';
  }
  abc[j] = '\0';
  gets(def);
  i = 0;
  j = 0;
  while (abc[i] != '\0' && def[j] != '\0') {
    if (abc[i] == def[j]) i++;
    j++;
  }
  if (abc[i] == '\0')
    cout << "yes";
  else
    cout << "no";
  return 0;
}
