The first semester ended. You know, after the end of the first semester the holidays begin. On holidays Noora decided to return to Vičkopolis. As a modest souvenir for Leha, she brought a sausage of length m from Pavlopolis. Everyone knows that any sausage can be represented as a string of lowercase English letters, the length of which is equal to the length of the sausage.

Leha was very pleased with the gift and immediately ate the sausage. But then he realized that it was a quite tactless act, because the sausage was a souvenir! So the hacker immediately went to the butcher shop. Unfortunately, there was only another sausage of length n in the shop. However Leha was not upset and bought this sausage. After coming home, he decided to cut the purchased sausage into several pieces and number the pieces starting from 1 from left to right. Then he wants to select several pieces and glue them together so that the obtained sausage is equal to the sausage that Noora gave. But the hacker can glue two pieces together only when the number of the left piece is less than the number of the right piece. Besides he knows that if he glues more than x pieces, Noora will notice that he has falsified souvenir sausage and will be very upset. Of course Leha doesn’t want to upset the girl. The hacker asks you to find out whether he is able to cut the sausage he bought, and then glue some of the pieces so that Noora doesn't notice anything.

Formally, you are given two strings s and t. The length of the string s is n, the length of the string t is m. It is required to select several pairwise non-intersecting substrings from s, so that their concatenation in the same order as these substrings appear in s, is equal to the string t. Denote by f(s, t) the minimal number of substrings to be chosen so that their concatenation is equal to the string t. If it is impossible to choose such substrings, then f(s, t) = ∞. Leha really wants to know whether it’s true that f(s, t) ≤ x.

Input

The first line contains single integer n (1 ≤ n ≤ 105) — length of sausage bought by Leha, i.e. the length of the string s.

The second line contains string s of the length n consisting of lowercase English letters.

The third line contains single integer m (1 ≤ m ≤ n) — length of sausage bought by Noora, i.e. the length of the string t.

The fourth line contains string t of the length m consisting of lowercase English letters.

The fifth line contains single integer x (1 ≤ x ≤ 30) — the maximum number of pieces of sausage that Leha can glue so that Noora doesn’t notice anything.

Output

In the only line print "YES" (without quotes), if Leha is able to succeed in creating new sausage so that Noora doesn't notice anything. Otherwise print "NO" (without quotes).

Examples

Input

9
hloyaygrt
6
loyyrt
3


Output

YES


Input

9
hloyaygrt
6
loyyrt
2


Output

NO

Note

Let's consider the first sample.

In the optimal answer, Leha should cut the sausage he bought in the following way: hloyaygrt = h + loy + a + y + g + rt. Then he numbers received parts from 1 to 6:

  * h — number 1
  * loy — number 2
  * a — number 3
  * y — number 4
  * g — number 5
  * rt — number 6



Hereupon the hacker should glue the parts with numbers 2, 4 and 6 and get sausage loyygrt equal to one that is given by Noora. Thus, he will have to glue three pieces. Since x = 3 you should print "YES" (without quotes).

In the second sample both sausages coincide with sausages from the first sample. However since x = 2 you should print "NO" (without quotes).
#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000009;
int N, M, K, dp[100005][35];
char s[100005], t[100005];
long long hsh1[100005], hsh2[100005], power[100005];
inline long long substrHash(int l, int r, long long hsh[]) {
  return (hsh[r] - (hsh[l - 1] * power[r - l + 1] % MOD) + MOD) % MOD;
}
inline int lcp(int f, int s) {
  int low = 0, high = min(N - f, M - s), ans = 0;
  while (low <= high) {
    int mid = (low + high) / 2;
    if (substrHash(f + 1, f + mid, hsh1) == substrHash(s + 1, s + mid, hsh2)) {
      ans = mid;
      low = mid + 1;
    } else
      high = mid - 1;
  }
  return ans;
}
int main() {
  scanf("%d %s", &N, s + 1);
  scanf(" %d %s", &M, t + 1);
  scanf(" %d", &K);
  power[0] = 1;
  for (int i = 1; i <= N; i++) {
    hsh1[i] = (hsh1[i - 1] * 131 + s[i]) % MOD;
    power[i] = power[i - 1] * 131 % MOD;
  }
  for (int i = 1; i <= M; i++) {
    hsh2[i] = (hsh2[i - 1] * 131 + t[i]) % MOD;
    power[i] = power[i - 1] * 131 % MOD;
  }
  for (int i = 0; i < N; i++) {
    for (int g = 0; g <= K; g++) {
      dp[i + 1][g] = max(dp[i + 1][g], dp[i][g]);
      if (g != K) {
        int nxt = lcp(i, dp[i][g]);
        dp[i + nxt][g + 1] = max(dp[i + nxt][g + 1], dp[i][g] + nxt);
      }
    }
  }
  bool f = false;
  for (int i = 1; i <= K; i++) f |= (dp[N][i] == M);
  if (f)
    printf("YES\n");
  else
    printf("NO\n");
}
