import locale
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')

a = 250
b = 10 ** 3
c = b ** a
d = b * c
e = b - 1
f = a * (e * (c-1) + c - d) + d - b
g = (f*2) // (e**2)

formatted_output = locale.format_string("%d", g, grouping=True).zfill(e).replace(',', '\n')

print(formatted_output)