c, y = map(int, input().split()) y //= 100 if y < c: print("can't exchange") elif y % 5 >= c: print("no exchange") else: print((y - c) % 5 + c)