class Pos{ public: int x,y; Pos(const Pos &p, int dx=0, int dy=0){ *this = p; x+=dx; y+=dy;} Pos(int _x, int _y){ x=_x; y=_y; }