#include using namespace std; void fast_io() { cin.tie(nullptr); ios_base::sync_with_stdio(false); } signed main(void) { fast_io(); long C, Y; cin >> C >> Y; if (100 * C > Y) { cout << "can't exchange\n"; return 0; } int coin = (Y / 100) % 10; if (coin >= 5) coin -= 5; if (coin >= C) { cout << "no exchange\n"; return 0; } else { cout << coin + 5 << endl; } return 0; }