{"problem":{"name":"2-variable Function","description":{"content":"Given an integer $N$, find the smallest integer $X$ that satisfies all of the conditions below. *   $X$ is greater than or equal to $N$. *   There is a pair of non-negative integers $(a, b)$ such tha","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc246_d"},"statements":[{"statement_type":"Markdown","content":"Given an integer $N$, find the smallest integer $X$ that satisfies all of the conditions below.\n\n*   $X$ is greater than or equal to $N$.\n*   There is a pair of non-negative integers $(a, b)$ such that $X=a^3+a^2b+ab^2+b^3$.\n\n## Constraints\n\n*   $N$ is an integer.\n*   $0 \\le N \\le 10^{18}$\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc246_d","tags":[],"sample_group":[["9","15\n\nFor any integer $X$ such that $9 \\le X \\le 14$, there is no $(a, b)$ that satisfies the condition in the statement.  \nFor $X=15$, $(a,b)=(2,1)$ satisfies the condition."],["0","0\n\n$N$ itself may satisfy the condition."],["999999999989449206","1000000000000000000\n\nInput and output may not fit into a $32$\\-bit integer type."]],"created_at":"2026-03-03 11:01:13"}}