from math import sin, cos, pi


def points(n):
    x, y = 1, 0
    yield x, y

    angle = 2 * pi / n
    sin_a = sin(angle)
    cos_a = cos(angle)

    for _ in range(n):
        x, y = (
            x * cos_a - y * sin_a,
            x * sin_a + y * cos_a
        )
        yield x, y


for x, y in points(8):
    print('{:.3f} {:.3f}'.format(x, y))
