문제11720
n = int(input()) s = input() answer = 0 for i in range(len(s)): answer += int(s[i]) print(answer)