N=str(input())
a=0
b=0
for i in N:
if i=='2':
a+=2
else:
b+=3
print(a-b)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
N=str(input())
a=0
b=0
for i in N:
if i=='2':
a+=2
else:
b+=3
print(a-b)
A-0
B-0
For in N:
If I =“2”
A+2
B+3