tmp = input() sum = 0 for val in tmp: sum += val print(sum)