cho.sh
Notes
Loading...

Rugby Club

Time limit

1s

Memory limit

128 MB

Problem

Members of a rugby club are classified as either senior or junior.

A member is senior if their age is greater than 17 or their weight is at least 80 kg. Otherwise, the member is junior. Classify each member correctly.

Input

Each line contains a member's name, age, and weight, separated by spaces. The final line is # 0 0; do not process this line.

A name contains only uppercase and lowercase English letters, and its length is at most 10.

Output

For each member in the input, print the member's name and classification on one line. Print Senior for a senior member and Junior for a junior member.