output_description: Print the minimum possible value displayed in the board after N operations.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      N
      K
attempt: N = int(input())
  K = int(input())
  
  now = 1
  for i in range(N):
  	if(now >= K):
  		now *= 2
      else:
  		now+=K
  print(now)
  
problem_description: Statement
  
  Square1001 has seen an electric bulletin board displaying the integer 1. He
  can perform the following operations A and B to change this value:
  
    * Operation A: The displayed value is doubled.
    * Operation B: The displayed value increases by K.
  
  Square1001 needs to perform these operations N times in total. Find the
  minimum possible value displayed in the board after N operations.
samples: [{"input": "4\n    3", "output": "10\n    \n\nThe value will be minimized when the operations are performed in the following\norder: A, A, B, B.  \nIn this case, the value will change as follows: 1 \u2192 2 \u2192 4 \u2192 7 \u2192 10.\n\n* * *"}, {"input": "10\n    10", "output": "76\n    \n\nThe value will be minimized when the operations are performed in the following\norder: A, A, A, A, B, B, B, B, B, B.  \nIn this case, the value will change as follows: 1 \u2192 2 \u2192 4 \u2192 8 \u2192 16 \u2192 26 \u2192 36 \u2192\n46 \u2192 56 \u2192 66 \u2192 76.\n\nBy the way, this contest is AtCoder Beginner Contest 076."}]