#include #define REP(i,n) for(int i=0; i<(n); i++) #define REP2(i,x,n) for(int i=x; i<(n); i++) using namespace std; int main (){ cin.tie(0); ios::sync_with_stdio(false); int K,N,F; cin >> K >> N >> F; int total = K*N; int A,res{0}; REP( i, F ){ cin >> A; res+=A; } cout << max( -1, total - res ) << endl; return 0; }