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