d = {'A':10,'B':11,'C':12,'D':13,'E':14,'F':15}s = input().strip()# print(s,type(s))# s = 0xAAcnt = 0j = 0for i in range(len(s)-1,1,-1): if s[i] in d: &...