func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(0);     long long n, m, k, t;     cin >> n >> m >> k >> t;     pair<int, int> mp[k + 1];     long long x, y, a, b;     for (int i = 0; i < k; i++) {       cin >> mp[i].first >> mp[i].second;     }     sort(mp, mp + k);     for (int i = 0; i < t; i++) {       cin >> x >> y;       long long idx = m * (x - 1) + y;       bool f = true;       for (int i = 0; i < k; i++) {         if (mp[i].first > x || (mp[i].first == x && mp[i].second > y)) {           idx -= (i + 1);           break;         }         if (mp[i].first == x && mp[i].second == y) {           f = false;           cout <<  Waste  << endl;           break;         }         if (i == k - 1) idx = idx - k - 1;       }       if (idx % 3 == 0 && f)         cout <<  Carrots  << endl;       else if (idx % 3 == 1 && f)         cout <<  Kiwis  << endl;       else if (idx % 3 == 2 && f)         cout <<  Grapes  << endl;     }   }   