{"raw_statement":[{"iden":"problem statement","content":"You are given integers $A$ and $B$, in base $K$.  \nPrint $A \\times B$ in decimal."},{"iden":"notes","content":"For base-$K$ representation, see [Wikipedia's article on Positional notation](https://en.wikipedia.org/wiki/Positional_notation)."},{"iden":"constraints","content":"*   $2 \\leq K \\leq 10$\n*   $1 \\leq A,B \\leq 10^5$\n*   $A$ and $B$ are in base-$K$ representation."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$K$\n$A$ $B$"},{"iden":"sample input 1","content":"2\n1011 10100"},{"iden":"sample output 1","content":"220\n\n`1011` in base $2$ corresponds to $11$ in base $10$.  \n`10100` in base $2$ corresponds to $20$ in base $10$.  \nWe have $11 \\times 20 = 220$, so print $220$."},{"iden":"sample input 2","content":"7\n123 456"},{"iden":"sample output 2","content":"15642\n\n`123` in base $7$ corresponds to $66$ in base $10$.  \n`456` in base $7$ corresponds to $237$ in base $10$.  \nWe have $66 \\times 237 = 15642$, so print $15642$."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}