#include #include #include using namespace std; using ll = long long; #define CIN( LL , A ) LL A; cin >> A #define RETURN( ANSWER ) cout << ( ANSWER ) << endl; return 0 #include int main() { CIN( ll , A ); CIN( ll , B ); assert( -1000000000000000000 <= A && A <= 1000000000000000000 ); assert( -1000000000000000000 <= B && B <= 1000000000000000000 ); assert( A == 1 ? B == 0 : true ); RETURN( A == 1 ? 0 : -B / ( A - 1 ) ); }