def main(): s = input() print(sum(int(i) for i in s if i.isnumeric())) if __name__ == '__main__': main()