{"raw_statement":[{"iden":"problem statement","content":"Takahashi and a cargo are on a coordinate plane.\nTakahashi is currently at $(X_A,Y_A)$, and the cargo is at $(X_B,Y_B)$. He wants to move the cargo to $(X_C,Y_C)$.\nWhen he is at $(x,y)$, he can make one of the following moves in a single action.\n\n*   Move to $(x+1,y)$. If the cargo is at $(x+1,y)$ before the move, move it to $(x+2,y)$.\n*   Move to $(x-1,y)$. If the cargo is at $(x-1,y)$ before the move, move it to $(x-2,y)$.\n*   Move to $(x,y+1)$. If the cargo is at $(x,y+1)$ before the move, move it to $(x,y+2)$.\n*   Move to $(x,y-1)$. If the cargo is at $(x,y-1)$ before the move, move it to $(x,y-2)$.\n\nFind the minimum number of actions required to move the cargo to $(X_C,Y_C)$."},{"iden":"constraints","content":"*   $-10^{17}\\leq X_A,Y_A,X_B,Y_B,X_C,Y_C\\leq 10^{17}$\n*   $(X_A,Y_A)\\neq (X_B,Y_B)$\n*   $(X_B,Y_B)\\neq (X_C,Y_C)$\n*   All input values are integers."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$X_A$ $Y_A$ $X_B$ $Y_B$ $X_C$ $Y_C$"},{"iden":"sample input 1","content":"1 2 3 3 0 5"},{"iden":"sample output 1","content":"9\n\nTakahashi can move the cargo to $(0,5)$ in nine actions as follows.\n\n*   Move to $(2,2)$.\n*   Move to $(3,2)$.\n*   Move to $(3,3)$. The cargo moves to $(3,4)$.\n*   Move to $(3,4)$. The cargo moves to $(3,5)$.\n*   Move to $(4,4)$.\n*   Move to $(4,5)$.\n*   Move to $(3,5)$. The cargo moves to $(2,5)$.\n*   Move to $(2,5)$. The cargo moves to $(1,5)$.\n*   Move to $(1,5)$. The cargo moves to $(0,5)$.\n\nIt is impossible to move the cargo to $(0,5)$ in eight or fewer actions, so you should print $9$."},{"iden":"sample input 2","content":"0 0 1 0 -1 0"},{"iden":"sample output 2","content":"6"},{"iden":"sample input 3","content":"\\-100000000000000000 -100000000000000000 100000000000000000 100000000000000000 -100000000000000000 -100000000000000000"},{"iden":"sample output 3","content":"800000000000000003"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}