number=gets; n=0; for i in 0..8 do m=number[i].to_i; if m==0 then m=10; end gokei= n+m; n=gokei; end print(gokei);