/**
:(<::+<>+!.(;;;;;;;;;;;;<<<<<<<?<<~~~~~~~~~~~~~~~<<<<<<<<;;;;;;;;;;<.(?>1c<<<<-_
<::;+z+z!..-~<!~___.......---((c(+<<<<<<<<<((----(-.......`.__~<<<<_..(??z<;;::<
;:;+OzO!......--((+;>>>>>+>+>?d1+0?????????>?z>??1y1>>>>>>><(--....... 1zzI;;;;:
:;;<Or:-(;;;><>>>j?>>?>?z?1I?jX?zb???????????dz???dzI?????????1z??><--..rw>;;;;;
;;;;?C(;>>>>>z?>1Z?????zz?z??dI?dI??????=??=?dk=?=vSdz=?=??=???zz????>><d$;;;;;;
;:;;+<+>>>>?+???z$????1j?=Z??lI=zI=?=1=?=?=?=?WZ=??zzWz??=?zz?==z????????jJjJ<;;
;;;;z>v>>>??j???dI??=?cz?zI?z_I?l(???zz?????==JWz?<(SdR=???=R????I????1z?z4m3;;;
;;;+;J1>????z??=WI=??z_I11v?>.I?v(z=?zI=?=??==?W0?? jvWZ??=?Xz=?=vz?=??j>j<(>;;;
;;;z+I>z????I?=zWI?=={(Iz(=1!.I?{_I?=?S??==??<~XW==.(vWWz=?=dZ??zzO?????I>z>;;;;
;;++zIjz????I?zwpI??z_(={(yz.(O1{ (z?=Xz??=?zC?vHyz..1Opk=??dR=?=0zz????zI1>>;>;
;+1zv?d?????I=ddpfzzv`(z:.Iv..(?>._I??vR???=={.(Wk?...zwHy=?dpz??dzI=???1vOz>;;>
;1z>I>X?????I=ddfb?={`.O_ I{`.(z>`.(x?zdZ=???}` XW<``.j<HR?=zHZ??dRz???1?I>z+>;;
+<;>I+W???=?I?ddpW?1:. Z-`({``-I?.`.j=?cWz=?={``(f{.``.>JpI?zHR?=dHz=??1Ij>><>;;
;;><hJ5z???=I?XwpWzz``.(_`.>...(z.`` 1?1(kz??:..,f\.`. {_WR?=HW?=dW2I???0j>>>>;+
1;>>IjWI????w?XRfkI1.`..:.`<``.-C-..` C=<(S=?!`..W!.``.!.Jpz=HW??dpSI???kj>>>;>>
(+>>IXWI?=??d?dHXWj?.``.(.-.._!_(>.`...11.(S=_((gMMMNg, `_W0=Np==dfRw??jZz>>jgs_
.j>>IZWk??=?XzdHkWcI..+M9=?7"TWh.<.....-1>.-3.7!....._TBx JRjHfz=dfkO??dZw?>>T>.
._z>zXWk??=1K0vHHWr(J=............<......1-....~........-.(RdHp=?WfW1I?dWw>>;+..
..(>jwyHv??zHw=HqHW_~.._.____~~~.~.....~..(_~.~.___-___`_.-XdHW?jWfW??1WWdz>+>..
.._I>dyW0?=zHd2XqqHr~..-_~~~~_.~.~~.~~-.~..~.~._~___~_...._dWHR?dpWk??dyWXz>+_..
...j?dyVH??zHZWdkqq2-~~~~.~.~.~..........~....~.......~.~.(HHH$jpWWk?1HyWSI>>_..
_(;j>jWVWy?1pRdkHkqq/...~..~.......................~.....(qqHH1dWHpR?dWyKZI;>`..
;;;+IjyVfH??WHvWWHqkH-.................`.`..............-dHHppdpHWf$dfHWWZI>>...
<;;+I+yVfWk=XHRdWWpHHh_.......`..``.```.`.````.`...`....(WWHfWHKpWfGHVWWyZI>+...
_<;>I?yyfWWydHWyWHpHV6h-``.```.``.``._...~.`.``.``.``.`.vdzHpfKpfHWpkdagOZ$>+-.~
(N.J<?yVfWfpdHfWdfpW(dzG- ``.``.`..`.``.``..`.`.``.`.`.rvdzppf:?4WHfpkZwyZ0>>l..
 OY!z+yyfpffpHX=(XfW(zvvvG,.`..`.``.`.``.```.`.`..`..yvvvzwp$~~:Z<?4pffVyZZ+>+-.
...(<jyyVfppV7_~::Opydvvrvwwo-..``.`.`..`..``.`...zzkkvvvvu3~:~?~~:~~TfVyyZI>>l.
...(>jZyVff>~~<~~~:?kdvvvvwdvvvvo-..`.``.`...._<dvvvXwvvrvIc:~~~:~~:~:(4WyZX+>+-
...z>JZyW=:~:~~:~~~:jwvrvvw0vvvvI>~(<-.....<~:~(JvrvwOvvvvIo~:~:~~:~:~:?WyyZI>>l
_`.<+XZy\ _:~:~~:~~:1wvvrvZ0vvrvvn:~~::~~~~~~::Jvvvvwwvvvv$v~~:~~:~~:~~:zyyyX+>j
.`(;juZX_`._~:~~:~~(Owvvvvwdvvvrvvn_~~~~:~:~:~(zvvrvkXvrvvSj:~~~:~~:~::~?VyyyI>j
`.<;yuu0.`.` _:~~:~(10rvvvvS0vvvvvvw._~:~~:_(wvvvvvwXXvvrvw1_~:~~:~~:~:~ VVyyR>j
` z+vzuZ-.``.` _:~:(vkvvrvvwdvrvvvvvw&:~:~(JvvvrvrvZXvvvvvZz<~~:~~:~~~``.ffVy$?+
`.zjvzuZl..`.``.._~(OSvvvvvvGXvvrvvvwww0+dZUwvvvvvwS0vvvrvvI>:~:~~~_.``.dVVySI>+
`.<wrvuZZ-..`.``zag(OXZ1?>>+z4Xvvvw0vOXUzUw?zOvvvvVI>>>+1zww?>~~..`.`.`.Vyyyj>>>
..z1rvzuZk.`...`.? (OC>>>>>>??IXvw4k?jwvvv$>?zOvvZZ>>>>>?>>Oy>_`.`.`.`.XyyZ$v>+!
` z<wrvwuu;.`.`.`` (1>????>?>>zZXIkuw?dXyWC???dXwy1????>??>??z_``.`...JZZuV(<<>.
.`1:(rrvwuI..`...`(<>>>>>>?>?>>?IOSWWk>wXD>1&Jvwv1>>>>>?>>>>>+l...`..-uuzZ_z;<..
..(<.urrrwv-......<>>>>>>>>>>>>>>+SuX??1z1??>??$>>>>>>>>>>>>>>>>.....JvrC_<;<.~.
.._1-_1ttrrl.....;;>>>>>>>>>>>>>>>OuuI>>?>>>>>jz>>>>>>>;>>;>;;;<_..._trC-<<<.~.~
..~(+-<1ttZI<-..(;;;;;;;;;;;;>;;>;jwrrz>>>>>>;j;;;;;;;;;;;;;;;;;<...(v~(>+!.~___
~.._+++;?OOlzlllz;;;++===1+++<;;;;;1tttO+;;;;<I;;+++1======1+<;;<._-<>J;<~.._:::
**/

#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int a, b; cin >> a >> b;
  int dp=1;
  int res=0;
  while (dp<b) {
    dp--;
    dp += a;
    res++;
  }
  cout << res << endl;
  return 0;
}

Measured memory_bytes: 256