s = list(map(int, list(input()))) print(sum(s))