n = 10**5 r = 10**8 ans = [] a,b = r, 0 import math print(n) print(a,b) for i in range(1, n): d_rad = math.radians((360 * i)/n) a_rotated = a * math.cos(d_rad) - b * math.sin(d_rad) b_rotated = a * math.sin(d_rad) + b * math.cos(d_rad) a = a_rotated b = b_rotated print(a,b)