eolymp
bolt
Try our new interface for solving problems
Problems

Post Office

Post Office

Other than postcards, the post office department of some country recognizes three classes of mailable items: letters, packets, and parcels. The three dimensions of a mailable item are called length, height and thickness, with length being the largest and thickness the smallest of the three dimensions. A letter's length must be at least \textbf{125}mm but not more than \textbf{290}mm, its height at least \textbf{90}mm but not more than \textbf{155}mm, and its thickness at least \textbf{0.25}mm but not more than \textbf{7}mm. (The unit millimeter is abbreviated by mm.) All three of a packet's dimensions must be greater than or equal to the corresponding minimum dimension for a letter, and at least one of its dimensions must exceed the corresponding maximum for a letter. Furthermore, a packet's length must be no more than 380mm, its height no more than 300mm, and its thickness no more than \textbf{50}mm. All three of a parcel's dimensions must be greater than or equal to the corresponding minimum dimension for a letter, and at least one of its dimensions must exceed the corresponding maximum for a packet. Furthermore, the parcel's combined length and girth may not exceed \textbf{2100}mm. (The girth is the full perimeter measured around the parcel, perpendicular to the length.) \InputFile The input will contain data for a number of problem instances. For each problem instance, the input will consist of the three dimensions (measured in mm) of an item, in any order. The length and width will be positive integers. The thickness will be either a positive integer or a positive floating point number. The input will be terminated by a line containing three zeros. \OutputFile For each problem instance, your program will classify the item as letter, packet, parcel or not mailable. This verdict will be displayed at the beginning of a new line, in lower case letters.
Time limit 1 second
Memory limit 64 MiB
Input example #1
100 120 100
0.5 100 200
100 10 200
200 75 100
0 0 0
Output example #1
not mailable
letter
packet
parcel