#include using namespace std; typedef long long ll; typedef unsigned long long ull; typedef vector vec; typedef vector vecstr; #define rep(i, n) for (int i = 0; i < (n); ++i) #define NO printf("NO") #define YES printf("YES") int main() { int k, n, f; cin >> k>>n>>f; int sum = k*n; rep(i, f) { int num; cin >> num; sum -= num; } cout << sum << endl; }