#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int H,W,A,B; cin >> H >> W >> A >> B,A--,B--; vector> X(H,vector(W)); { int x1,y1,x2,y2; cin >> x1 >> y1 >> x2 >> y2,x1--,y1--; for(int i=x1; i> P >> Q,P--,Q--; int answer = 1001001001; for(int i=0; i