# coding: utf-8 # Your code here! s = list(map(int, input())) print(sum(s))