# -*- coding: utf-8 -*- S = raw_input() ref = "abcdefghijklmnopqrstuvwxyz" Slist = list(S) N = len(Slist) for i in range(0, N): if Slist[i] in ref: Slist[i] = 0 print sum(map(int, Slist))