#include using namespace std; int main(){ int in,pre,n,vx,vy; cin >> vx >> vy >> n; cin >> pre; while(cin >> in){ if(in*vx