#36068: python 小方法


aa0980949726@gmail.com (回來寫C++希望我不會放棄吧,喔對 其他解題網站好難歐幹一題...)


a,b=map(int,input().split())
c=b-a
if b-a<0:
    c=b-a+100
print(c)