
def intersect?(line1, line2)
  v1 = [line1[2]-line1[0], line1[3]-line1[1]]
  p1 = [line2[0]-line1[0], line2[1]-line1[1]]
  p2 = [line2[2]-line1[0], line2[3]-line1[1]]
  v1p1 = v1[0]*p1[1] - v1[1]*p1[0]
  v1p2 = v1[0]*p2[1] - v1[1]*p2[0]
  v2 = [line2[2]-line2[0], line2[3]-line2[1]]
  p1 = [line1[0]-line2[0], line1[1]-line2[1]]
  p2 = [line1[2]-line2[0], line1[3]-line2[1]]
  v2p1 = v2[0]*p1[1] - v2[1]*p1[0]
  v2p2 = v2[0]*p2[1] - v2[1]*p2[0]
  return false if ((v1p1 * v1p2 < 0) && (v2p1 * v2p2 < 0)) == false

  a1 = (line1[3] - line1[1]) / (line1[2] - line1[0])
  a3 = (line2[3] - line2[1]) / (line2[2] - line2[0])
  x = (a1*line1[0] - line1[1] - a3 * line2[0] + line2[1]) / (a1 - a3)
  y = (x - line1[0]) * (line1[3] - line1[1]) / (line1[2] - line1[0]) + line1[1]
  [x, y]
end

while true do
  line = Array.new {Array.new}
  3.times do
    exit if !line.push(gets.split.map(&:to_f)).last.find{|e| e != 0.0}
  end
  isTriangle = true
  intersectingPoint = Array.new
  3.times do |i|
    isTriangle = false if !intersectingPoint.push(intersect?(line[i], line[(i + 1) % 3])).last
  end
  case isTriangle
    when false
      puts "kyo"
    when true
      t1 = [intersectingPoint[1][0] - intersectingPoint[0][0], intersectingPoint[1][1] - intersectingPoint[0][1]]
      t2 = [intersectingPoint[2][0] - intersectingPoint[0][0], intersectingPoint[2][1] - intersectingPoint[0][1]]
      area = (t1[0]*t2[1] - t1[1]*t2[0]).abs / 2.0
      if area >= 1900000
        puts "dai-kichi"
      elsif area >= 1000000
        puts "chu-kichi"
      elsif area >= 100000
        puts "kichi"
      elsif area > 0
        puts "syo-kichi"
      else
        puts "kyo"
      end
  end
end