{"problem":{"name":"S = 1","description":{"content":"You are given integers $X$ and $Y$, which satisfy at least one of $X \\neq 0$ and $Y \\neq 0$.   Find a pair of integers $(A, B)$ that satisfies all of the following conditions. If no such pair exists, ","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc340_f"},"statements":[{"statement_type":"Markdown","content":"You are given integers $X$ and $Y$, which satisfy at least one of $X \\neq 0$ and $Y \\neq 0$.  \nFind a pair of integers $(A, B)$ that satisfies all of the following conditions. If no such pair exists, report so.\n\n*   $-10^{18} \\leq A, B \\leq 10^{18}$\n*   The area of the triangle with vertices at points $(0, 0), (X, Y), (A, B)$ on the $xy$\\-plane is $1$.\n\n## Constraints\n\n*   $-10^{17} \\leq X, Y \\leq 10^{17}$\n*   $(X, Y) \\neq (0, 0)$\n*   $X$ and $Y$ are integers.\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$X$ $Y$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc340_f","tags":[],"sample_group":[["3 5","1 1\n\nThe area of the triangle with vertices at points $(0, 0), (3, 5), (1, 1)$ is $1$. Thus, $(A, B) = (1, 1)$ satisfies the conditions."],["\\-2 0","0 1"],["8752654402832944 -6857065241301125","\\-1"]],"created_at":"2026-03-03 11:01:14"}}