Victory Robot

tahmidrafi SCB-PA Inter School and C...
Limits 1s, 512 MB

Your school is going to arrange a ceremony to celebrate the upcoming victory day. So the high school students have built a robot. It has a screen and a number pad. If you enter an odd number it would print out Joy on it's screen and if you enter an even number it would print out Bangla on it's screen and if you enter $1971$ it would print Joy Bangla on it's screen.

You school robotics team have already built the hardware. As you are a good programmer your Head master have assigned you to do the programming part.

Input

First line of input will have an integer $T$ $(1 \leq T \leq 100,000)$, which is the number of test cases.

Each of the following $T$ lines will have a positive integer $N$ $(0 \leq N \leq 100,000)$.

Output

  • If the input is an odd number print, Joy.
  • If the input is an even number print, Bangla.
  • If the input is $1971$ print, Joy Bangla.

Sample

InputOutput
5
1
0
99999
2
1971
Joy
Bangla
Joy
Bangla
Joy Bangla

Submit

Login to submit.

Statistics

97% Solution Ratio
sourav_hossainEarliest, Nov '18
faisalrifat699Fastest, 0.0s
mdalaminislamLightest, 262 kB
Nusab19Shortest, 82B
Toph uses cookies. By continuing you agree to our Cookie Policy.