mas = [21,13,12,312,3,123,12,31,31,41,1]
a = int(input('Введите число а '))
s = 0
for i in range(len(mas)):
if mas[i] < a:
s += mas[i]
print(s)
mas = [21,13,12,312,3,123,12,31,31,41,1]
a = int(input('Введите число а '))
s = 0
for i in range(len(mas)):
if mas[i] < a:
s += mas[i]
print(s)