{"raw_statement":[{"iden":"problem statement","content":"On an $xy$\\-coordinate plane, is there a lattice point whose distances from two lattice points $(x_1, y_1)$ and $(x_2, y_2)$ are both $\\sqrt{5}$?"},{"iden":"notes","content":"A point on an $xy$\\-coordinate plane whose $x$ and $y$ coordinates are both integers is called a lattice point.  \nThe distance between two points $(a, b)$ and $(c, d)$ is defined to be the Euclidean distance between them, $\\sqrt{(a - c)^2 + (b-d)^2}$.\nThe following figure illustrates an $xy$\\-plane with a black circle at $(0, 0)$ and white circles at the lattice points whose distances from $(0, 0)$ are $\\sqrt{5}$. (The grid shows where either $x$ or $y$ is an integer.)\n![image](https://img.atcoder.jp/ghi/2bee701e93a6a0298f73121b85a03f46.jpg)"},{"iden":"constraints","content":"*   $-10^9 \\leq x_1 \\leq 10^9$\n*   $-10^9 \\leq y_1 \\leq 10^9$\n*   $-10^9 \\leq x_2 \\leq 10^9$\n*   $-10^9 \\leq y_2 \\leq 10^9$\n*   $(x_1, y_1) \\neq (x_2, y_2)$\n*   All values in input are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$x_1$ $y_1$ $x_2$ $y_2$"},{"iden":"sample input 1","content":"0 0 3 3"},{"iden":"sample output 1","content":"Yes\n\n*   The distance between points $(2,1)$ and $(x_1, y_1)$ is $\\sqrt{(0-2)^2 + (0-1)^2} = \\sqrt{5}$;\n*   the distance between points $(2,1)$ and $(x_2, y_2)$ is $\\sqrt{(3-2)^2 + (3-1)^2} = \\sqrt{5}$;\n*   point $(2, 1)$ is a lattice point,\n\nso point $(2, 1)$ satisfies the condition. Thus, `Yes` should be printed.  \nOne can also assert in the same way that $(1, 2)$ also satisfies the condition."},{"iden":"sample input 2","content":"0 1 2 3"},{"iden":"sample output 2","content":"No\n\nNo lattice point satisfies the condition, so `No` should be printed."},{"iden":"sample input 3","content":"1000000000 1000000000 999999999 999999999"},{"iden":"sample output 3","content":"Yes\n\nPoint $(10^9 + 1, 10^9 - 2)$ and point $(10^9 - 2, 10^9 + 1)$ satisfy the condition."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}