#!/usr/bin/python

import random, math, sys

def randpoint():
	return (random.randint(0,319),random.randint(0,189))

def center(L):
	x = 0
	y = 0
	n = len(L)
	for p in L:
		x = x + p[0]
		y = y + p[1]
	return (x / n, y / n)

def genpoly(n):
	L = [ randpoint() for i in range(n) ]
	c = center(L)
	L.sort(key=lambda p: -math.atan2(p[0] - c[0], p[1] - c[1]))
	return L

def printpoly(prefix, P):
	sys.stdout.write("%s:" % (prefix,) )
	for p in P:
		sys.stdout.write(" (%s, %s)" % p)
	sys.stdout.write("\n")

sys.stdout.write("interactive\n")

P = genpoly(4)
printpoly("I", P)
for L in range(3):
	P = genpoly(3)
	printpoly("2", P)
	
