#include #define rep(i,n) for(int i = 0; i < (int)(n); i++) using namespace std; using LL = long long; using P = pair; using vv = vector>; const int INF = (int)1e9; const LL LINF = (LL)1e18; int main(){ int H, W, p; cin >> H >> W >> p; rep(i,1001){ string ans = "INVALID"; cout << ans << endl; int res; cin >> res; } return 0; }