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.

Input

The only line of input consists of three space-separated integers.

Output

If the three integers given are sorted, output "SORTED" (no quotes). Otherwise, output "UNSORTED".

ExamplesInput
3 5 8
Output
SORTED
Input
6 6 7
Output
UNSORTED
Input
5 2 1
Output
UNSORTED

加入题单

算法标签: