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 n<0 { n=-1 } Println(n) }