# 1
for number in range(1, 20 + 1):
if not number % 2:
print(number)
# или
for number in range(2, 20 + 1, 2):
number = 2
while number <= 20:
number += 2
# 2
k = int(input("K="))
n = int(input("N="))
for _ in range(n):
print(k)
# 1
for number in range(1, 20 + 1):
if not number % 2:
print(number)
# или
for number in range(2, 20 + 1, 2):
print(number)
# или
number = 2
while number <= 20:
print(number)
number += 2
# 2
k = int(input("K="))
n = int(input("N="))
for _ in range(n):
print(k)