C,Y=map(int,input().split()) Y//=100 E="exchange" if Y=C:print("no",E) else:print(Y%5+(C-Y%5+4)//5*5)