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