#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { fast_io(); long long a, b; cin >> a >> b; if (a == 1) { cout << 0 << endl; } else { cout << b / (a - 1) << endl; } }