#!/usr/bin/env python3

# print even numbers between 1 and 500 without loops
# https://w...content-available-to-author-only...t.com/r/badcode/comments/136dits/solve_the_problem_without_using_a_loop/
#    by wischi

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)
