ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1924. Four Imps

AC on C++
Posted by Arman Sykot 7 Jan 2021 15:40
/*
* 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;
}