def main(): S = input() int_ = tuple(map(int, list(S))) print(sum(int_)) main()