#include #include int main() { int k,n,f; int age[100]; int i; int num; scanf("%d",&k); scanf("%d",&n); scanf("%d",&f); num=k*n; for(i=0;i=0)){ num-=age[i]; } else{ printf("-1\n"); exit(0); } } printf("%d\n",num); return 0; }