Screenshot 2022-11-22 at 9.19.17 PM.png

n_sum, sum = 0,0
list1 = []
a = input()
lengthOfA = len(a)
print(lengthOfA)

for i in a:
    for j in i:
       sum += int(j)
print(sum)

for x in a:
    for y in x:
        if int(y)%2==1:
            n_sum += int(y)

print(n_sum)

for c in a:
    list1.append(c)
print(list1.count('4'))

for k in a:
    list1.append(int(k))
if int(lengthOfA)%2==0:
    print(int(int(lengthOfA) / 2))
else:
    print(int((int(lengthOfA)-1)/2))