import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        logic cal = new logic();
        System.out.println(cal.calc());
    }

    public static class logic{
        private double a = 0, b = 0;
        private double ans;
        private int ret;

        private int calc(){
            Scanner sc = new Scanner(System.in);
            a = sc.nextInt();
            b = sc.nextInt();
          	sc.close();
    
            ans = (b - 1) / (a - 1);
            if (ans % 1 != 0) {
                ret = (int)ans + 1;
            }else{
                ret = (int)ans;
            }
            
            return ret;
        }
    }

}
/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz