import sys readline=sys.stdin.readline N,K=map(int,readline().split()) K-=1 ans=0 for bit in range(1,(1<lstr[0]: ans+=1 print(ans)