// I SELL YOU...! #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; using P = pair; using TP = tuple; void init_io(){ cin.tie(0); ios::sync_with_stdio(false); cout << setprecision(10); } signed main(){ init_io(); ll r,c,sy,sx,gy,gx; cin >> r >> c >> sy >> sx >> gy >> gx; cout << abs(sx-gx) + abs(gy-sy)<