#include <stdio.h>bool is_ordered(int a, int b, int c) { if (a < b && b < c) return true; if (a > b && b > c) return true; return false; }int main() { int n, a, b, c; scanf("%d", &n); printf("Gnomes:n"); while (n--) { scanf("%d %d %d", &a, &b, &c); if (is_ordered(a, b, c)) printf("Orderedn"); else printf("Unorderedn"); } return 0; }


