dig = int(input("digito"))
a = (dig//1000)%10
b = (dig//100)%10
c = (dig//10)%10
d = (dig//1)%10
total = a+b+c+d
print(total)
fdcac90b08045c4c0a131b46cbd2daed433345e2
<mask token>

<mask token>
print(total)

dig = int(input('digito'))
a = dig // 1000 % 10
b = dig // 100 % 10
c = dig // 10 % 10
d = dig // 1 % 10
total = a + b + c + d
print(total)

dig = int(input("digito"))
a = (dig//1000)%10
b = (dig//100)%10
c = (dig//10)%10
d = (dig//1)%10
total = a+b+c+d
print(total)