#!/usr/bin/env python3

def d(p1, p2): return (p2[0] - p1[0]) * (p2[0] - p1[0]) + (p2[1] - p1[1]) * (p2[1] - p1[1])


def p(p1, p2, p3, p4): return (p1[0] - p2[0]) * (p4[1] - p3[1]) == (p4[0] - p3[0]) * (p1[1] - p2[1])


ps = [tuple(map(int, input().split())) for _ in range(4)]
(a, b, c, d), eds = [d(p1, p2) for p1, p2 in zip(ps, ps[1:] + ps[:1])], d(ps[0], ps[2]) == d(ps[1], ps[3])
print(("square" if eds else "rhombus") if len({a, b, c, d}) <= 1 else
      ("rectangle" if eds else "parallelogram") if a == c and b == d else
      "kite" if a == b and c == d or b == c and d == a else "trapezium" if p(*ps) or p(*(ps[1:] + ps[:1])) else "none")
