alist = map(int,input().split()) sum = 0 for n in alist: sum = sum + (n-1) print(sum)