#include <bits/stdc++.h>
using namespace std;
int PW[1000];
char FR[3][10] = {"Carrots", "Kiwis", "Grapes"};
int n, m, k, t;
string getIT(int n) {
  for (int i = 0; i < k; i++)
    if (PW[i] > n)
      return FR[(n - i - 1) % 3];
    else if (PW[i] == n)
      return "Waste";
  return FR[(n - k - 1) % 3];
}
int main() {
  cin >> n >> m >> k >> t;
  int a, b;
  for (int i = 0; i < k; i++) cin >> a >> b, PW[i] = (a - 1) * m + b;
  sort(PW, PW + k);
  for (int i = 0; i < t; i++)
    cin >> a >> b, a--, cout << getIT(a * m + b) << endl;
  return 0;
}
