a,b = map(int,input().split(' ')) if a>2*b or 2*a