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

a = 4999

geom_a = [
    (1, 0),
    (0, -1),
    (-1, 0),
    (-a-3, 2*a+1),
    (-a-2, 2*a+2),
    (-a, 2*a+1),
    (0, 2*a),
    (-2, 2*a),
    (-a-2, 2*a+1),
]

geom_b = [
    (2, 0),
    (0, -2),
    (-a, a),
    (-a+1, 2*a),
    (-1, a),
    (a-1, a-1),
    (a-2, a-1),
    (-2, a),
]

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