{"raw_statement":[{"iden":"problem statement","content":"Square1001 has seen an electric bulletin board displaying the integer $1$. He can perform the following operations A and B to change this value:\n\n*   Operation A: The displayed value is doubled.\n*   Operation B: The displayed value increases by $K$.\n\nSquare1001 needs to perform these operations $N$ times in total. Find the minimum possible value displayed in the board after $N$ operations."},{"iden":"constraints","content":"*   $1 \\leq N, K \\leq 10$\n*   All input values are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$\n$K$"},{"iden":"sample input 1","content":"4\n3"},{"iden":"sample output 1","content":"10\n\nThe value will be minimized when the operations are performed in the following order: A, A, B, B.  \nIn this case, the value will change as follows: $1$ → $2$ → $4$ → $7$ → $10$."},{"iden":"sample input 2","content":"10\n10"},{"iden":"sample output 2","content":"76\n\nThe value will be minimized when the operations are performed in the following order: A, A, A, A, B, B, B, B, B, B.  \nIn this case, the value will change as follows: $1$ → $2$ → $4$ → $8$ → $16$ → $26$ → $36$ → $46$ → $56$ → $66$ → $76$.\nBy the way, this contest is AtCoder Beginner Contest 076."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}