#import random

#value =  random.randint(0,10)

#if value > 5:
    # print(value)
#else:
#    print(value)

# month_num = int(input("Введите номер месяца"))
#
# if month_num > 12
#     print("noooo")
# elif month_num >= 9 and month_num <= 11:
#  print("autumn")
# elif month_num >= 6 and month_num <= 8 :
#     print("summer")
#

def print_nums(x):
    res = 0
    for i in range(x):
        print(i)
        res += i

    return res
print(print_nums(4))
