3rd BUBT Intra-University Programming Problem B

Problem B
Birthday Lights
Input: standard input   Output: standard output


The Problem
Kabir vai is a great programmer. He is invited to a birthday function. But he started to feel boring. The place was decorated with small lights which were blinking and changing colors with each blink. At the first blink a light colored green, then blue with next blink, then red and yellow at last. See the sequence:
Green=>Blue=>Red=>Yellow.


Kabir vai started to count the blinks and at a certain count he suddenly stopped. Can you tell which color was on the light then?
Input
Input will contain an integer N, 1<=N<=  – 1, (number of blinks Kabir vai counted) in each line.
Output
For each input, output which color is on the light in a line. See sample input and output below.
Sample Input
1
2
8
Sample Output
Green
Blue
Yellow
______________________________________________________________________________
Problem Setter: Md. Hasan Shahriar, Dept. of CSE
Bangladesh University of Business and Technology (BUBT)
At First you can try to solve this problem if you can’t than see this code & find what’s your problem . If you copy paste this code you could not improve yourself in programming .

Posted by Shipu Ahamed

Leave a Reply