#include <stdio.h>
#import <Foundation/Foundation.h>
#include <math.h>

int main(int argc, const char * argv[]) {
    int A, B;
    scanf("%d %d", &A, &B);
    int result = ceil((float)(B-1) / (A-1));
    printf("%d", result);
    return 0;
}
