407210: GYM102697 181 Sorted Numbers
Memory Limit:256 MB
Time Limit:1 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
181. Sorted Numberstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output This problem is worth 5 points.
You like sequences of numbers that are in sorted order. You have three integers, and you want to figure out whether or not they're sorted, i.e. the first number is less than (not equal to) the second number, and the second number is less than (not equal to) the third number.
InputThe only line of input consists of three space-separated integers.
OutputIf the three integers given are sorted, output "SORTED" (no quotes). Otherwise, output "UNSORTED".
ExamplesInput3 5 8Output
SORTEDInput
6 6 7Output
UNSORTEDInput
5 2 1Output
UNSORTED