𝐾,𝑁,𝐹= map(int,input().split()) lst = list(map(int,input().split())) print(K*N- sum(lst)if ( K*N- sum(lst) )>=0 else -1)