aboutsummaryrefslogtreecommitdiff
path: root/contests/Codechef_Starters_41/F/main.cpp
blob: 8159cd11b7fa75fcfcf5d9a6c3999cdec9fbc0f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <bits/stdc++.h>

using namespace std;

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int tt;
  cin >> tt;
  while (tt--) {
    long long n, k;
    cin >> n >> k;
    if (k == 1) {
      cout << ((n % 2 == 0) ? "EVEN" : "ODD") << endl;
    } else if(k == 2) {
      cout << "ODD" << endl;
    } else {
      cout << "EVEN" << endl;
    }
  }
}