#include using namespace std; int main(){ cin.tie(0),ios::sync_with_stdio(false); int x,y,n; cin>>x>>y>>n; vectora(n); for(auto&i:a)cin>>i; bool yes=true; for(int i=1;i