Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Victory Robot

By tahmidrafi · 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.

Samples

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

Discussion