fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7.  
  8. if (n % 3 == 1)
  9. cout << "GREEN" << endl;
  10. else if (n % 3 == 2)
  11. cout << "RED" << endl;
  12. else
  13. cout << "YELLOW" << endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5288KB
stdin
7
stdout
GREEN