#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const char nl = '\n';
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, m, k, t;
  cin >> n >> m >> k >> t;
  vector<vector<int> > w;
  int a, b;
  while (k--) {
    cin >> a >> b;
    w.push_back(vector<int>{a, b});
  }
  sort(w.begin(), w.end());
  vector<string> veg{"Carrots", "Kiwis", "Grapes"};
  int temp, x;
  while (t--) {
    x = 1;
    cin >> a >> b;
    if (binary_search(w.begin(), w.end(), vector<int>{a, b}))
      cout << "Waste" << nl;
    else {
      temp = (a - 1) * m + b;
      for (auto i : w) {
        if (i[0] < a) {
          ++x;
        } else if (i[0] == a) {
          if (i[1] < b) ++x;
        }
      }
      cout << veg[((temp - x) % 3)] << nl;
    }
  }
}
