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