|  | 
|  | 
| back to board | AC on C++ /** Author      : Arman Sykot
 * Date & time : 07.01.2021 11:13:23 +06
 */
 
 #include <bits/stdc++.h>
 #define ll long long
 #define pb push_back
 #define I_am_the_one_who_KNOCKS ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
 
 using namespace std;
 
 const double EPS = 1e-9;
 
 int main() {
 #ifndef ONLINE_JUDGE
 freopen ("in.txt", "r", stdin);
 freopen ("out.txt", "w", stdout);
 #endif
 I_am_the_one_who_KNOCKS;
 
 int n;
 cin >> n;
 
 int sum = (n * (n + 1)) / 2;
 
 if (sum % 2 == 0)
 cout << "black\n";
 else
 cout << "grimy\n";
 
 return 0;
 }
 | 
 | 
|