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:

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 will contain an integer N, 1<=N<=  – 1, (number of blinks Kabir vai counted) in each line.
For each input, output which color is on the light in a line. See sample input and output below.
Sample Input
Sample Output
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