from sklearn.cluster import kmeans a = input() s = 0 for c in a: s += int(c) print(s)