#B3778. Find the Classroom Building

    ID: 11435 Type: Default 1000ms 256MiB

Find the Classroom Building

Find the Classroom Building

In a large school, zyl is trying to locate the building that contains his classroom. The school has three teaching buildings with the following maximum floor counts:

  • Library: 3 floors
  • Comprehensive: 5 floors
  • Art: 9 floors

zyl knows two key pieces of information:

  1. The classroom is on floor \( n \).
  2. The three buildings have different population flows given by three integers \( a, b, c \) corresponding to the Library, Comprehensive, and Art buildings respectively.

The classroom must be located in a building where its floor \( n \) does not exceed the building's maximum floor count. Among the buildings that satisfy this condition, the classroom is in the one with the minimum population flow.

Your task is to determine in which building zyl's classroom is located. Output the building name as one of the following strings: Library, Comprehensive, or Art.

inputFormat

The input contains a single line with four integers separated by spaces:

  • \( n \): the floor number where the classroom is located
  • \( a \): population flow of the Library
  • \( b \): population flow of the Comprehensive building
  • \( c \): population flow of the Art building

It is guaranteed that \( a\), \( b\), and \( c \) are pairwise distinct.

outputFormat

Output a single string indicating the building name where the classroom is located. The output should be either Library, Comprehensive, or Art.

sample

2 5 3 7
Comprehensive