ProgramID- 8095
SkillRack
Sorted or Not

Accept three integers A, B and C as the input. If A, B and C are in ascending order or in descending order then print "SORTED" as the output else print "NOTSORTED" as the output.

Example Input/Output 1:
Input:
1 4 9

Output:
SORTED

Example Input/Output 2:
Input:
35 23 23

Output:
SORTED

Example Input/Output 3:
Input:
25 37 12

Output:
NOTSORTED


Max Execution Time Limit: 4000 millisecs