#include<bits/stdc++.h> using namespace std; int n,m,t,sx,sy,fx,fy; int main() { ios::sync_with_stdio(0); cin.tie(0); cin>>n>>m>>t; cin>>sx>>sy>>fx>>fy; while(t--) { int x,y; cin>>x>>y; if(x==fx && y==fy) { return 1; } } return 0; }
REon#6