n = input()
num = 0
count0 = count1 =0
for i in n:
if 122 >= ord(i) >= 97:
num += ord(i) -96
elif 90 >= ord(i) >= 65:
num += ord(i) - 64
while num > 0:
mod = num % 2
num //= 2
if mod == 0:
count0 += 1
else:
count1 += 1
print(count0,count1)
pat 乙类 1057 python
最新推荐文章于 2024-09-22 17:12:26 发布