def main(): text = input() count = 0 for i in range(len(text)): if(text[i].isdecimal()): count += int(text[i]) print(count) if __name__ == '__main__': main()