r,p=int(input()),int(input())
f,b=p//2,((r-p)//2)+1
if r%2==1:
if r-p==1:
b=0
else:
b=((r-p)//2)
l=[f,b]
print(min(l))
Hi friends....
In this blog I'm going to give answer for daily test skillrack program, daily challenges and kick start programs and give some coding techniques.
It'll be helpful for u sure and make it usefull
Learn More →
0 Comments