# coding=utf-8 l = int(input()) n = int(input()) stop_codon = input().split() print(2 ** (l - 3) * n)