summaryrefslogtreecommitdiff
path: root/progs/test.py
blob: ef59445bbc15b5f6e6a9bc95cb00fe0fb483d38c (plain)
1
2
3
4
5
6
7
8
n = int(input())
x = int(input())
m = 1
while n > 1:
    tmp = 2 * x
    m = m * tmp
    n = n - 1
print(m + tmp)