#include <bits/stdc++.h>
using namespace std;
const int INF = 1 << 29;
const double EPS = 1e-9;
const char *crop[3] = {"Carrots", "Kiwis", "Grapes"};
int m, n, nw, nq;
int main() {
  scanf("%d%d%d%d", &m, &n, &nw, &nq);
  set<int> waste[40000];
  for (int i = (0); i < (nw); ++i) {
    int x, y;
    scanf("%d%d", &y, &x);
    x--, y--;
    waste[y].insert(x);
  }
  int hd[40000];
  for (int i = 0, tmp = 0; i < m; i++) {
    hd[i] = tmp;
    tmp = (tmp + (n - waste[i].size())) % 3;
  }
  for (int i = (0); i < (nq); ++i) {
    int x, y;
    scanf("%d%d", &y, &x);
    x--, y--;
    if (waste[y].count(x) == 1) {
      puts("Waste");
    } else {
      int tmp = distance(waste[y].begin(), waste[y].lower_bound(x));
      tmp = x - tmp;
      tmp = (hd[y] + tmp) % 3;
      puts(crop[tmp]);
    }
  }
  return 0;
}
