BlueBook - Cross Country

View as PDF

Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 16M

Problem type

Given a two character code, decide if the code represents either:

Code Output
MG midget girls
MB midget boys
JG junior girls
JB junior boys
SG senior girls
SB senior boys

All codes are case sensitive, and will always be two characters long. Be sure to reject invalid codes by outputting invalid code. Also, output what each code represents, as stated exactly.

Input Specification

Input consists of a two character code representing either one of the six categories described above.

Output Specification

Output the full description of the code. If the code does not exist, output invalid code.

Sample Input


Sample Output

junior girls


  • -5
    Bobbychuck12  commented on Jan. 8, 2021, 3:23 p.m.

    This comment is hidden due to too much negative feedback. Click here to view it.

    • 0
      IsaacJ60  commented on Nov. 17, 2021, 5:23 p.m.

      thats just how sport age groups are named...