https://www.acmicpc.net/problem/11720
n=int(input()) num=input() sum=0 for i in num: sum+=int(i) print(sum)