package main import ( "fmt" "math" ) func main() { var n, k, ans int fmt.Scan(&n, &k) l, d := int(math.Pow(2, float64(n))), int(math.Pow(2, float64(k))) for i := 1; i <= l; i++ { if d*i > l { break } ans++ } fmt.Println(ans) }