#include <iostream>
using namespace std;
void checkOrder(int arr[], int n) {
int i;
i = 1;
while(i < n && arr[i] == arr[0]) i++;
if(i == n) cout<<"Sir Constant.";
else if(i < n) {
if(arr[i] > arr[i-1]) {
int order = 1;
for(int j = i; j < n; j++) {
if(arr[j]<arr[j-1]) {
order = 0;
}
}
if(order == 1) cout<<"Sir Ordonat Strict Crescator.";
else
cout<<"Sir Unordered.";
} else if(arr[i] < arr[i-1]) {
int order = 1;
for(int j = i; j < n; j++) {
if(arr[j] > arr[j-1]) {
order = 0;
}
}
if(order == 1) cout<<"Sir Ordonat Strict Descrescator.";
else
cout<<"Sir Unordered.";
}
}
}
int main(int argc, char const *argv[]) {
int arr[] = {11,7,6,5,4,3,2,1,0,-10}, n = sizeof(arr) / sizeof(arr[0]);
checkOrder(arr, n);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnZvaWQgY2hlY2tPcmRlcihpbnQgYXJyW10sIGludCBuKSB7CgogICAgIGludCBpOwogICAgIGkgPSAxOwogICAgIHdoaWxlKGkgPCBuICYmIGFycltpXSA9PSBhcnJbMF0pIGkrKzsKCgogICAgIGlmKGkgPT0gbikgY291dDw8IlNpciBDb25zdGFudC4iOwogICAgIGVsc2UgaWYoaSA8IG4pIHsKCiAgICAgICAgICBpZihhcnJbaV0gPiBhcnJbaS0xXSkgewoKICAgICAgICAgICAgaW50IG9yZGVyID0gMTsKCiAgICAgICAgICAgIGZvcihpbnQgaiA9IGk7IGogPCBuOyBqKyspIHsKICAgICAgICAgICAgICBpZihhcnJbal08YXJyW2otMV0pIHsKICAgICAgICAgICAgICAgIG9yZGVyID0gMDsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIGlmKG9yZGVyID09IDEpIGNvdXQ8PCJTaXIgT3Jkb25hdCBTdHJpY3QgQ3Jlc2NhdG9yLiI7CiAgICAgICAgICAgICAgICAgICAgZWxzZQogICAgICAgICAgICAgICAgICAgICAgICAgICBjb3V0PDwiU2lyIFVub3JkZXJlZC4iOwoKICAgICAgICAgIH0gZWxzZSBpZihhcnJbaV0gPCBhcnJbaS0xXSkgewoKICAgICAgICAgICAgaW50IG9yZGVyID0gMTsKCiAgICAgICAgICAgIGZvcihpbnQgaiA9IGk7IGogPCBuOyBqKyspIHsKICAgICAgICAgICAgICBpZihhcnJbal0gPiBhcnJbai0xXSkgewogICAgICAgICAgICAgICAgb3JkZXIgPSAwOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQoKICAgICAgICAgICAgaWYob3JkZXIgPT0gMSkgY291dDw8IlNpciBPcmRvbmF0IFN0cmljdCBEZXNjcmVzY2F0b3IuIjsKICAgICAgICAgICAgICAgICAgICBlbHNlCiAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvdXQ8PCJTaXIgVW5vcmRlcmVkLiI7CgogICAgICAgICAgfQoKCiAgICAgfQoKfQoKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgY29uc3QgKmFyZ3ZbXSkgewoKICBpbnQgYXJyW10gPSB7MTEsNyw2LDUsNCwzLDIsMSwwLC0xMH0sIG4gPSBzaXplb2YoYXJyKSAvIHNpemVvZihhcnJbMF0pOwoKICBjaGVja09yZGVyKGFyciwgbik7CgogIHJldHVybiAwOwp9Cg==