Помогите пожалуйста, не могу понять как избавиться от ошибки 'int' object is not subscriptable
n = int(input())
down_lvl = n * 2
hight = n * 2 + 1
a = n
for i in range(a):
otvet += (n - a[i])*2
print(otvet)
print(otvet + hight)
#я забыл исправить еще две переменных:
n = int(input())
down_lvl = n * 2
hight = n * 2 + 1
a = n
for i in range(a):
down_lvl += (n - a[i])*2
print(down_lvl)
print(down_lvl + hight)