package main import . "fmt" func main() { var k,n,f int Scan(&k,&n,&f) k*=n for ;f>0;f-- { Scan(&n) k-=n } if k<0 { k=-1 } Println(k) }