{"raw_statement":[{"iden":"problem statement","content":"For a positive integer $x$, let $f(x)$ be the sum of its digit. For example, $f(144) = 1+4+4 = 9$ and $f(1)=1$.\nYou are given a positive integer $N$. Find the following positive integers $M$ and $x$:\n\n*   The maximum positive integer $M$ for which there exists a positive integer $x$ such that $f(x)=N$ and $f(2x)=M$.\n*   The minimum positive integer $x$ such that $f(x)=N$ and $f(2x)=M$ for the $M$ above."},{"iden":"constraints","content":"*   $1\\leq N\\leq 10^5$"},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$"},{"iden":"sample input 1","content":"3"},{"iden":"sample output 1","content":"6\n3\n\nWe can prove that whenever $f(x)=3$, $f(2x) = 6$. Thus, $M=6$. The minimum positive integer $x$ such that $f(x)=3$ and $f(2x)=6$ is $x=3$. These $M$ and $x$ should be printed."},{"iden":"sample input 2","content":"6"},{"iden":"sample output 2","content":"12\n24"},{"iden":"sample input 3","content":"100"},{"iden":"sample output 3","content":"200\n4444444444444444444444444"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}