{"raw_statement":[{"iden":"problem statement","content":"You are given positive integers $N$ and $M$. Find the maximum positive integer $X$ that satisfies all of the following conditions.\n\n*   $X$ is a positive integer less than $10^N$, and all digits in the decimal representation of $X$ are the same.\n*   $X$ is a multiple of $M$.\n\nIf no positive integer $X$ satisfies the conditions, print `-1`."},{"iden":"constraints","content":"*   $1\\leq N\\leq 10^5$\n*   $1\\leq M\\leq 10^9$"},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$N$ $M$"},{"iden":"sample input 1","content":"7 12"},{"iden":"sample output 1","content":"888888\n\nFour positive integers $X$ satisfy the conditions: $444, 888, 444444, 888888$. The answer is the maximum of them, which is $888888$."},{"iden":"sample input 2","content":"9 12"},{"iden":"sample output 2","content":"888888888\n\nSix positive integers $X$ satisfy the conditions: $444, 888, 444444, 888888, 444444444, 888888888$."},{"iden":"sample input 3","content":"1 3"},{"iden":"sample output 3","content":"9\n\nThree positive integers $X$ satisfy the conditions: $3, 6, 9$."},{"iden":"sample input 4","content":"1000 25"},{"iden":"sample output 4","content":"\\-1\n\nNo positive integers $X$ satisfy the conditions."},{"iden":"sample input 5","content":"30 1"},{"iden":"sample output 5","content":"999999999999999999999999999999"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}