#include #define rep(i,n)for(int i=0;i>R>>C>>sy>>sx>>gy>>gx; cout<