# frozen_string_literal: true def solve 2**Rational(N, L).ceil - 1 end N, L = gets.split.map(&:to_i) puts solve