import sys input = sys.stdin.readline C,Y=map(int,input().split()) if Y//100=C: print("no exchange") else: k=(C-now+4)//5 print(now+k*5)