let arr=readLine()!.characters.split{$0==" "}.map{Int(String($0))!}
let a = arr[0]
let b = arr[1]


var sockets = 1
var o = 0
while 1 == 1 {
  if( sockets >= b ) {
    break
  }
  
  sockets = sockets - 1 + a
  o += 1
  //print( sockets )
}

print( o )