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