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

n = 42
m = 74

def spiky_shape(c, r):
  res = []
  for i in range(c):
    rad = r + (100 if i%2 == 0 else 0)
    x = round(rad * cos(i * 2 * pi / c))
    y = round(rad * sin(i * 2 * pi / c))
    res += [(x, y)]
  return res

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

with open("data/secret/16.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)
