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