import std.algorithm;
import std.array;
import std.container;
import std.conv;
import std.math;
import std.numeric;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void scan(T...)(ref T a) {
    string[] ss = readln.split;
    foreach (i, t; T) a[i] = ss[i].to!t;
}
T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;

int calc(int a, int b) {
    if (b == 1) return 0;
    if (a >= b) return 1;

    int ans = 1;
    int x = a;
    while (x < b) {
        x = x + a - 1;
        ans++;
    }
    return ans;
}

void main() {
    int a, b; scan(a, b);
    writeln(calc(a, b));
}
