#!/usr/bin/env python3
from math import sin, cos, pi

n = 130
m = 370

def regular_shape(c, r):
  res = []
  for i in range(c):
    x = round(r * cos(i * 2 * pi / c))
    y = round(r * sin(i * 2 * pi / c))
    res += [(x, y)]
  return res

geom_a = regular_shape(n, 2000)
geom_b = regular_shape(m, 5000)

with open("data/secret/15.in", "w") as f:
  print(n, file=f)
  for x, y in geom_a:
    print('{:d} {:d}'.format(x, y), file=f)
  print(m, file=f)
  for x, y in geom_b:
    print('{:d} {:d}'.format(x, y), file=f)
