C,Y=map(int,input().split()) Y//=100 if C>Y: print("can't exchange") elif C<=Y%5: print("no exchange ") else: print((C+4)//5*5)