#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
char s[N];
int main() {
  int n, m, k;
  scanf("%d%d%d", &n, &m, &k);
  scanf("%s", s + 1);
  int ct = m + k;
  while (ct--) {
    int op, l, r, x;
    scanf("%d%d%d%d", &op, &l, &r, &x);
    if (op == 1)
      memset(s + l, '0' + x, r - l + 1);
    else
      puts(memcmp(s + l, s + l + x, r - l + 1 - x) ? "NO" : "YES");
  }
  return 0;
}
