{"raw_statement":[{"iden":"problem statement","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$."},{"iden":"constraints","content":"*   $N$ is an integer.\n*   $0 \\le N \\le 10^{18}$"},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$"},{"iden":"sample input 1","content":"9"},{"iden":"sample output 1","content":"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."},{"iden":"sample input 2","content":"0"},{"iden":"sample output 2","content":"0\n\n$N$ itself may satisfy the condition."},{"iden":"sample input 3","content":"999999999989449206"},{"iden":"sample output 3","content":"1000000000000000000\n\nInput and output may not fit into a $32$\\-bit integer type."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}