#include <bits/stdc++.h>
using namespace std;
vector<int> zfunt(string s, string p) {
  int n = s.size();
  int m = p.size();
  s = p + '*' + s;
  vector<int> z1(n + m + 1), z(n);
  int i, l = 0, r = 0;
  for (i = 1; i < m + n + 1; ++i) {
    if (i <= r) z1[i] = min(z1[i - l], r - i + 1);
    while (i + z1[i] < n + m + 1 && s[z1[i]] == s[i + z1[i]]) ++z1[i];
    if (i + z1[i] - 1 > r) {
      l = i;
      r = i + z1[i] - 1;
    }
  }
  for (i = m + 1; i < z1.size(); ++i) z[i - m - 1] = z1[i];
  return z;
}
int L[1000001], R[1000001];
int main() {
  ios_base::sync_with_stdio(false);
  cout.tie(0);
  cin.tie(0);
  int n, m, k, i, j, x, y, z, a, b;
  cin >> n >> m >> k;
  string s, p;
  cin >> s >> p;
  vector<int> v1 = zfunt(s, p);
  reverse(s.begin(), s.end());
  reverse(p.begin(), p.end());
  vector<int> v2 = zfunt(s, p);
  reverse(v2.begin(), v2.end());
  set<int> se;
  for (i = 1; i <= k; ++i) se.insert(i);
  for (i = 0; i < n; ++i) {
    x = min(k, v1[i]);
    auto it = se.upper_bound(x);
    if (it == se.begin()) continue;
    x = *(--it);
    while (x + i >= k) {
      L[x] = i + x - k + 1;
      auto it = se.find(x);
      if (it == se.begin()) {
        se.erase(x);
        break;
      }
      --it;
      y = *it;
      se.erase(x);
      x = y;
    }
  }
  for (i = 1; i <= k; ++i) se.insert(i);
  for (i = n - 1; i >= 0; --i) {
    x = min(k, v2[i]);
    auto it = se.upper_bound(x);
    if (it == se.begin()) continue;
    x = *(--it);
    while (n - (i - x + 1) >= k) {
      R[x] = i - x + 1 + 1;
      auto it = se.find(x);
      if (it == se.begin()) {
        se.erase(x);
        break;
      }
      --it;
      y = *it;
      se.erase(x);
      x = y;
    }
  }
  for (i = 1; i < m; ++i) {
    x = i;
    y = m - i;
    if ((L[x] && R[y]) && (R[y] - L[x] >= k)) {
      cout << "Yes" << endl;
      cout << L[x] << " " << R[y] << endl;
      return 0;
    }
  }
  for (i = 0; i < n; ++i) {
    if (v1[i] >= m) {
      a = min(i + 1, n - 2 * k + 1);
      b = a + k;
      cout << "Yes" << endl;
      cout << a << " " << b << endl;
      return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}
