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