{"raw_statement":[{"iden":"problem statement","content":"You are given an integer $B$.  \nIf there exists a positive integer $A$ such that $A^A = B$, print its value; otherwise, output `-1`."},{"iden":"constraints","content":"*   $1 \\leq B \\leq 10^{18}$\n*   $B$ is an integer."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$B$"},{"iden":"sample input 1","content":"27"},{"iden":"sample output 1","content":"3\n\n$3^3 = 27$, so print $3$."},{"iden":"sample input 2","content":"100"},{"iden":"sample output 2","content":"\\-1\n\nThere is no $A$ such that $A^A = B$."},{"iden":"sample input 3","content":"10000000000"},{"iden":"sample output 3","content":"10"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}