K, N, F = map(int, input().split()) L = list(map(int, input().split())) sum = 0 for s in L: sum += int(s) print (K * N - sum)