#include <stdio.h>

int main() {
    int a, b, c;
    while (scanf("%d %d %d", &a, &b, &c) != EOF) {
        if (a == b && b == c && a + b > c) {
            printf("Equilateral triangle!");
        } else if (a == b && a + b > c || a == c && a + b > c || b == c && a + b > c) {
            printf("Isosceles triangle!");
        } else if (a + b > c && a != c && c != b) {
            printf("Ordinary triangle!");
        } else {
            printf("Not a triangle!");
        }
        printf("\n");
    }
    return 0;
}