Go: package main

import (
	"bufio"
		"os"
	"strings"
	"strconv"
	"fmt"
	"math"
)

var scanner = bufio.NewScanner(os.Stdin)

type Point struct {
	x, y float64
}
func main() {
	for scanner.Scan() {
		buf1 := strings.Split(scanner.Text(), " ")
		line1 := make([]float64, len(buf1))
		for i := range line1 {
			line1[i], _ = strconv.ParseFloat(buf1[i], 64)
		}
		if line1[0] == 0 && line1[1] == 0 &&
			line1[2] == 0 && line1[3] == 0 {
				break
		}
		scanner.Scan()
		buf2 := strings.Split(scanner.Text(), " ")
		line2 := make([]float64, len(buf2))
		for i := range line2 {
			line2[i], _ = strconv.ParseFloat(buf2[i], 64)
		}
		scanner.Scan()
		buf3 := strings.Split(scanner.Text(), " ")
		line3 := make([]float64, len(buf3))
		for i := range line2 {
			line3[i], _ = strconv.ParseFloat(buf3[i], 64)
		}
		if !intersect(line1[0], line1[1], line1[2], line1[3], line2[0], line2[1], line2[2], line2[3]) ||
			!intersect(line2[0], line2[1], line2[2], line2[3], line3[0], line3[1], line3[2], line3[3]) ||
			!intersect(line3[0], line3[1], line3[2], line3[3], line1[0], line1[1], line1[2], line1[3]) {
				fmt.Println("kyo")
		} else {
			p1 := intersection(line1[0], line1[1], line1[2], line1[3], line2[0], line2[1], line2[2], line2[3])
			p2 := intersection(line2[0], line2[1], line2[2], line2[3], line3[0], line3[1], line3[2], line3[3])
			p3 := intersection(line3[0], line3[1], line3[2], line3[3], line1[0], line1[1], line1[2], line1[3])
			area := math.Abs((p2.x - p1.x) * (p3.y - p1.y) - (p2.y - p1.y) * (p3.x - p1.x))/2
			if area < 0.00000001 {
				fmt.Println("kyo")
			} else if 1899999.99999999 < area {
				fmt.Println("dai-kichi")
			} else if 999999.99999999 < area {
				fmt.Println("chu-kichi")
			} else if 99999.99999999 < area {
				fmt.Println("kichi")
			} else {
				fmt.Println("syo-kichi")
			}
		}
	}
}

func cross(x1, y1, x2, y2 float64) int {
	z :=  x1 * y2 - y1 * x2
	if 0 < z {
		return 1
	} else if z < 0 {
		return -1
	} else {
		return 0
	}
}

func intersect(x1, y1, x2, y2, x3, y3, x4, y4 float64) bool {
	if 0 <= cross(x2-x1, y2-y1, x3-x1, y3-y1) *
		cross(x2-x1, y2-y1, x4-x1, y4-y1) {
			return false
	}
	if 0 <= cross(x4-x3, y4-y3, x1-x3, y1-y3) *
		cross(x4-x3, y4-y3, x2-x3, y2-y3) {
			return false
	}
	return true
}

func intersection(x1, y1, x2, y2, x3, y3, x4, y4 float64) Point {
	if x3 == x4 {
		x1, x3 = x3, x1
		y1, y3 = y3, y1
		x2, x4 = x4, x2
		y2, y4 = y4, y2
	}
	ret := Point{}
	if x1 == x2 {
		// y軸に平行な直線の場合
		c := (y4 - y3) / (x4 - x3)
		d := y3 - c * x3
		x := x1
		y := c * x + d
		ret.x, ret.y = x, y
	} else {
		a := (y2 - y1) / (x2 - x1)
		b := y1 - a * x1
		c := (y4 - y3) / (x4 - x3)
		d := y3 - c * x3
		x := (d - b) / (a - c)
		y := a * x + b
		ret.x, ret.y = x, y
	}
	return ret
}

C++: #include <stdio.h>
#include <cmath>
#include <algorithm>
#include <cfloat>
#include <stack>
#include <queue>
#include <vector>
#include <string>
#include <iostream>
#include <set>
#include <map>
#include <time.h>
typedef long long int ll;
typedef unsigned long long int ull;
#define BIG_NUM 2000000000
#define MOD 1000000007
#define EPS 0.000000001
using namespace std;


struct Point{
	double x,y;
};

struct Line{
	Point p1,p2;
};
Line line[3];

int func(double x1,double y1,double x2, double y2, double xp, double yp){
	double naiseki,norm1,norm2,gaiseki;
	norm1 = sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1));
	norm2 = sqrt((xp-x1)*(xp-x1)+(yp-y1)*(yp-y1));
	naiseki = (xp-x1)*(x2-x1)+(yp-y1)*(y2-y1);
	gaiseki = (x2-x1)*(yp-y1)-(xp-x1)*(y2-y1);
	if(gaiseki > EPS){
		return 1;
	}else if(gaiseki < -EPS){
		return -1;
	}
	if(naiseki < -EPS){
		return 2;
	}

	if(norm1 < norm2){
		return -2;
	}
	return 0;
}

Point calc_Cross_Point(double x1,double x2,double x3,double x4,double y1,double y2,double y3,double y4){
	Point ret;
	ret.x = ((x2-x1)*(y3*(x4-x3)+x3*(y3-y4))-(x4-x3)*(y1*(x2-x1)+x1*(y1-y2)))/((y2-y1)*(x4-x3)-(y4-y3)*(x2-x1));
	if(x1 != x2){
		ret.y = ((y2-y1)*ret.x+y1*(x2-x1)+x1*(y1-y2))/(x2-x1);
	}else{
		ret.y = ((y4-y3)*ret.x+y3*(x4-x3)+x3*(y3-y4))/(x4-x3);
	}
	return ret;
}

double calc_S(Point a,Point b,Point c){
	return fabs((b.x*a.y - b.y*a.x)+(c.x*b.y - c.y*b.x)+(a.x*c.y - a.y*c.x))/2;
}

void func(){

	scanf("%lf %lf %lf %lf",&line[1].p1.x,&line[1].p1.y,&line[1].p2.x,&line[1].p2.y);
	scanf("%lf %lf %lf %lf",&line[2].p1.x,&line[2].p1.y,&line[2].p2.x,&line[2].p2.y);

	bool cross_12 = false,cross_13 = false,cross_23 = false;
	Point A,B,C;

	if(func(line[0].p1.x,line[0].p1.y,line[0].p2.x,line[0].p2.y,line[1].p1.x,line[1].p1.y)*
			func(line[0].p1.x,line[0].p1.y,line[0].p2.x,line[0].p2.y,line[1].p2.x,line[1].p2.y) <= 0 &&
			func(line[1].p1.x,line[1].p1.y,line[1].p2.x,line[1].p2.y,line[0].p1.x,line[0].p1.y)*
			func(line[1].p1.x,line[1].p1.y,line[1].p2.x,line[1].p2.y,line[0].p2.x,line[0].p2.y) <= 0){
		cross_12 = true;
		A = calc_Cross_Point(line[0].p1.x,line[0].p2.x,line[1].p1.x,line[1].p2.x,line[0].p1.y,line[0].p2.y,line[1].p1.y,line[1].p2.y);
	}
	if(!cross_12){
		printf("kyo\n");
		return;
	}

	if(func(line[0].p1.x,line[0].p1.y,line[0].p2.x,line[0].p2.y,line[2].p1.x,line[2].p1.y)*
			func(line[0].p1.x,line[0].p1.y,line[0].p2.x,line[0].p2.y,line[2].p2.x,line[2].p2.y) <= 0 &&
			func(line[2].p1.x,line[2].p1.y,line[2].p2.x,line[2].p2.y,line[0].p1.x,line[0].p1.y)*
			func(line[2].p1.x,line[2].p1.y,line[2].p2.x,line[2].p2.y,line[0].p2.x,line[0].p2.y) <= 0){
		cross_13 = true;
		B = calc_Cross_Point(line[0].p1.x,line[0].p2.x,line[2].p1.x,line[2].p2.x,line[0].p1.y,line[0].p2.y,line[2].p1.y,line[2].p2.y);
	}
	if(!cross_13){
		printf("kyo\n");
		return;
	}


	if(func(line[1].p1.x,line[1].p1.y,line[1].p2.x,line[1].p2.y,line[2].p1.x,line[2].p1.y)*
			func(line[1].p1.x,line[1].p1.y,line[1].p2.x,line[1].p2.y,line[2].p2.x,line[2].p2.y) <= 0 &&
			func(line[2].p1.x,line[2].p1.y,line[2].p2.x,line[2].p2.y,line[1].p1.x,line[1].p1.y)*
			func(line[2].p1.x,line[2].p1.y,line[2].p2.x,line[2].p2.y,line[1].p2.x,line[1].p2.y) <= 0){
		cross_23 = true;
		C = calc_Cross_Point(line[1].p1.x,line[1].p2.x,line[2].p1.x,line[2].p2.x,line[1].p1.y,line[1].p2.y,line[2].p1.y,line[2].p2.y);
	}
	if(!cross_23){
		printf("kyo\n");
		return;
	}


	double S = calc_S(A,B,C);

	if(S < EPS){
		printf("kyo\n");
	}else{
		if(S >= 1900000.0){
			printf("dai-kichi\n");
		}else if(S >= 1000000.0){
			printf("chu-kichi\n");
		}else if(S >= 100000.0){
			printf("kichi\n");
		}else{
			printf("syo-kichi\n");
		}
	}
}

int main(){

	while(true){
		scanf("%lf %lf %lf %lf",&line[0].p1.x,&line[0].p1.y,&line[0].p2.x,&line[0].p2.y);
		if(line[0].p1.x == 0 && line[0].p1.y == 0 && line[0].p2.x == 0 && line[0].p2.y == 0)break;

		func();
	}

    return 0;
}