ls=[int(i) for i in input().split()] for i in range(len(ls)): if ls[i]==0: ls[i]=10 print(sum(ls))