print(sum(int([10,x][x>'0'])for x in input()))