Problem:


Score : 200 points

Problem Statement

Takahashi's house has only one socket.

Takahashi wants to extend it with some number of power strips, each with A sockets, into B or more empty sockets.

One power strip with A sockets can extend one empty socket into A empty sockets.

Find the minimum number of power strips required.

Constraints

All values in input are integers.

2 \leq A \leq 20

1 \leq B \leq 20

Input

Input is given from Standard Input in the following format:

A B

Output

Print the minimum number of power strips required.

Sample Input 1

4 10

Sample Output 1

3

3 power strips, each with 4 sockets, extend the socket into 10 empty sockets.

Sample Input 2

8 9

Sample Output 2

2

2 power strips, each with 8 sockets, extend the socket into 15 empty sockets.

Sample Input 3

8 8

Sample Output 3

1



Sample input:
4 10


Sample output:
3

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a >= b:
    print(1)
else:
    for i in range(20):
        if (a * i - 1) >= b:
            break
    print(i)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a <= b:
    print(1)
else:
    for i in range(20):
        if (a * i - 1) >= b:
            break
    print(i)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a == b:
    print(1)
else:
    for i in range(20):
        if (a * i - 1) >= b:
            break
    print(i)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

for i in range(20):
    if (a * i - 1) >= b:
        break
print(i)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
i=1
sum = a

while sum<b:
	sum+=a-1
	i+=1
print(i)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
i=1
sum = a
if sum<=b:
	while sum<b:
		sum+=a-1
		i+=1
print(i)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(10000000)
INF = 1<<32


def solve(A: int, B: int):
    # print(B//(A-1))
    n = A
    i = 1
    while n < B:
        n += (A-1)
        i += 1

    print(i)

    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

tap = 1

while A*tap-(tap-1) < B:
    tap += 1
print(tap)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
ans = 1
while ans < B:
  ans += A-1
print(ans)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().strip().split())

c = 1
while A < B:
    A += A - 1
    c += 1
else:
    print(c)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().strip().split())

q, r = divmod(B, A)
print(q + (0 if r == 0 else 1))

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())


if B % A == 0:
    print((B+1) // (A+1))
else:
    print((B+1) // (A+1) + 1)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

if B % A == 0:
    print(B // A)
else:
    print(B // A + 1)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
ans = 0
for i in range(10**100):
    if A+(A-1)*i < B:
        ans += 1
    else:
        ans += 1
        break
print(ans)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
ans = 0

for i in range(10**10000):
    if i+1 == 1:
        if A < B:
            ans += 1
        else:
            ans += 1
            break
    elif A+(A-1)*i < B:
        ans += 1
    else:
        ans += 1
        break
print(ans)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
ans = 0

for i in range(10**100):
    if i+1 == 1:
        if A < B:
            ans += 1
        else:
            ans += 1
            break
    elif A+(A-1)*i < B:
        ans += 1
    else:
        ans += 1
        break
print(ans)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
count = 0
for i in range(1, B):
    if A + count >= B:
        print(i)
        exit()
    count += A - 1

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
count = 0
for i in range(1, B + 1):
    if A + count >= B:
        print(i)
        exit()
    count += A - 1

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
tap = 0
count = 1
while True:
    if A + tap >= B:
        print(count)
        exit()
    tap += A - 1
    count += 1

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
count = 0
for i in range(1, B + 1):
    if A + count >= B:
        print(i)
        exit()
    count +=  A - 1

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

for i in range(1, B + 1):
    if A * i >= B:
        print(i)
        exit()

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
cnt = 0

while b > a:
    b -= a
    cnt += 1
print(cnt+1)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if b==1:
    print(1)
else:
    n=1
    c=0
    while b>n:
        n+=a-1
        c+=1
    print(c)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print((b+a-1)//a)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print((b+a-1)//a+1)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
# input
a, b = map(int, input().split())
# calc
if b-a <= 0:
    print(1)
else:
    if (b-a) % (a-1) == 0:
        print(int(((b-a)//(a-1))+1))
    else:
        print(int(((b-a)//(a-1))+2))

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())


c = a

if c >= b:
    print(1)
    
else:
    for i in range(10000):
        c -= 1
        c += a
        
        if c >= b:
            print(i+2)
            break

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())


for i in range(1,10000):
    if a*i-(i-1) >= b:
        print(i)
        break

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())


for i in range(1,10000):
    if a*i >= b:
        print(i)
        break

Submission status: Wrong Answer

Solution code:
a, b = map(lambda x: int(x), input().split())
mishi = a
count = 1
while mishi < b :
    mishi += a - 1
    count += 1
print(count)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
tmp = 1

while tmp*a-tmp+1 < b:
    tmp += 1

print(tmp)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

for i in range(b+2):
    if a + (a-1)*i >= b:
        print(i+1)
        break

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

for i in range(b):
    if a + (a-1)*i >= b:
        print(i+1)
        break

Submission status: Wrong Answer

Solution code:
A,B=list(map(int,input().split()))
if B%A:
  print(B//A+1)
else:
  print(B//A)

Submission status: Wrong Answer

Solution code:
A,B=list(map(int,input().split()))
if A%B:
  print(B//A+1)
else:
  print(B//A)

Submission status: Wrong Answer

Solution code:
A,B=list(map(int,input().split()))
if A%B:
  print(A//B+1)
else:
  print(A//B)

Submission status: Wrong Answer

Solution code:
a,b=(int(x) for x in input().split())
total=1
ans=0

while True:
	if total<b:
		ans+=1
		total+=3
	else:
		break

print(ans)

Submission status: Wrong Answer

Solution code:
from sys import stdin

a,b= [int(x) for x in stdin.readline().rstrip().split()]

if a > b:
    print(1)
elif b%a!=0:
    print(b//a+1)
else:
    print(b//a)

Submission status: Wrong Answer

Solution code:
from sys import stdin

a,b= [int(x) for x in stdin.readline().rstrip().split()]

if a > b:
    print(1)
elif b%a!=0:
    print(b//a+1)
else:
    print(a//b)

Submission status: Wrong Answer

Solution code:
from sys import stdin

a,b= [int(x) for x in stdin.readline().rstrip().split()]

if a > b:
    print(0)
elif b%a!=0:
    print(b//a+1)
else:
    print(a//b)

Submission status: Wrong Answer

Solution code:
from sys import stdin

a,b= [int(x) for x in stdin.readline().rstrip().split()]

if b%a!=0:
    print(b//a+1)
else:
    print(a//b)

Submission status: Wrong Answer

Solution code:
a,b =map(int,input().split())
print((b-1)//(a-1))

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
cnt=1
ans=A
while ans<B:
    ans+=A-1
    cnt+=1
print(cnt)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
cnt=1
ans=A
while ans<B:
    ans+=A
    cnt+=1
print(cnt)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
chk = 0
cnt = 0
while chk<b:
    cnt+=1
    if cnt == 1:
        chk = a
    else:
        chk = chk+a-1
print(cnt)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a>=b:
    print(1)
else:
    i=2
    while 1:
        if (a-1)*(i-1)+a>=b:
            break
        else:
            i+=1
    print(i)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a>=b:
    print(1)
else:
    i=2
    while 1:
        if a*i-i +1>=b:
            break
        else:
            i+=1
    print(i)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a>=b:
    print(1)
else:
    i=2
    while 1:
        if a*i-1>=b:
            break
        else:
            i+=1
    print(i)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a>=b:
    print(1)
else:
    s=b//a
    if b%a==0:
        print(s)
    else:
        print(s+1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

ans = 0

for i in range(100):
    if a >= b:
        ans = 1
    elif a + (a - 1)*i > b:
        ans = i
        break

print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

ans = 0

for i in range(21):
    if a >= b:
        ans = 1
    elif a + (a - 1)*i > b:
        ans = i
        break

print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

ans = 0

for i in range(20):
    if a >= b:
        ans = 1
    elif a + (a - 1)*i > b:
        ans = i
        break

print(ans)

Submission status: Wrong Answer

Solution code:
import sys

num = list(map(int,input().split()))
A = num[0]
B = num[1]
if (B/A==1):
	print(int(B/A))
else:
	print(int(B/A+1))

Submission status: Wrong Answer

Solution code:
import sys

num = list(map(int,input().split()))
A = num[0]
B = num[1]
if (B%A==0):
	print(int(B/A))
else:
	print(int(B/A+1))

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
cnt = 1
soc = 1
while soc < b:
    soc += a - 1
    cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
cnt = 1
while a < b:
    a += a - 1
    cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
cnt = 0
while a < b:
    a += a
    cnt += 1
print(cnt)

Submission status: Wrong Answer

Solution code:
A, B = list(map(int, input().split()))
if A * int(B / A + 1) - int(B / A -1) > B :
	print(int(B / A) + 1)
else :
	print(int(B / A))

Submission status: Wrong Answer

Solution code:
A, B = list(map(int, input().split()))
if B % A >= 1 :
	print(int(B / A) + 1)
else :
	print(int(B / A))

Submission status: Wrong Answer

Solution code:
(A, B), = [list(map(int, s.split())) for s in open(0)]

if A >= B:
    print(1)
else:
    cnt = 1
    while True:
        if B <= A + (A - 1)*(cnt - 1):
            break
        cnt += 1
    print(cnt)

Submission status: Wrong Answer

Solution code:
(A, B), = [list(map(int, s.split())) for s in open(0)]
if A >= B:
    print(1)
else:
    cnt = 1
    while True:
        if B <= A + A*(cnt - 1):
            break
        cnt += 1
    print(cnt)

Submission status: Wrong Answer

Solution code:
(A, B), = [list(map(int, s.split())) for s in open(0)]
if A >= B:
    print(1)
else:
    if (B - A)%(A - 1) == 0:
        print(int((B - A)/(A - 1) + 1))
    else:
        t = (B - A)//(A - 1) + 1
        while A + (A - 1)*(t - 1) < B:
            t += 1
        print(int(t))

Submission status: Wrong Answer

Solution code:
(A, B), = [list(map(int, s.split())) for s in open(0)]
total = 0 
i = 0

while total < B:
    if A == B:
        i = 1
        break
    total += A - i
    if not total == B:
        i += 1
print(i)

Submission status: Wrong Answer

Solution code:
A,B=map(int, input().split()) 
print((B-1)//(A-1))

Submission status: Wrong Answer

Solution code:
A,B=map(int, input().split()) 
for i in range(B):
  t = (A-1) * (i) + A
  if B <= t:
    print(i+1)
    break

Submission status: Wrong Answer

Solution code:
A,B=map(int, input().split()) 
for i in range(B):
  t = A - 1
  if B <= t * (i+1):
    print(i+1)
    break

Submission status: Wrong Answer

Solution code:
A,B=map(int, input().split()) 
for i in range(B):
  t = A * (i+1) - i
  if B <= t:
    print(i+1)
    break

Submission status: Wrong Answer

Solution code:
A,B=map(int, input().split()) 
count=0
for i in range(1,B+1):
  t = A * i + 1 -i
  count +=1
  if B <= t:
    print(count)
    break

Submission status: Wrong Answer

Solution code:
A,B=map(int, input().split()) 
if B <= A:
    print(1)
elif B % A !=0:
  print(int(B / A) + 1)
elif B % A == 0:
  print(int(B/A))

Submission status: Wrong Answer

Solution code:
A,B=map(int, input().split()) 
if B > A:
    print(int(B / A) + 1)
if B <= A:
    print(1)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split(" "))
ans=int(b/(a-1))
if b%(a-1)>1:
  ans+=1
print(ans)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

print(int((b - 1)/a)+1)

Submission status: Wrong Answer

Solution code:

def main():
    a,b  = map(int, input().split())
    
    tmp = 0
    ans = 0
    while tmp < b:
        ans += 1
        tmp = ans*a-ans+1

    print(ans)
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:

def main():
    a,b  = map(int, input().split())
    
    tmp = 0
    ans = 0
    while tmp <= b:
        ans += 1
        tmp = ans*a-ans+1
        

    print(ans-1)
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import math
a,b=map(int,input().split())
c = math.ceil(b/a)
print(c if a*c-(c-1) >=b else c+1)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

num = 0

for i in range(1, B):
    if (A - 1) * i + 1 < B:
        num += 1
    else:
        num = num
print(num+1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
ans = 1
cnt = a
while cnt < b:
    cnt -= 1
    cnt += a
    ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

count = 0; socket = 0
while True:
    socket += A
    count += 1
    if socket >= B:
        break
    socket -= 1

print(count)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

count = 1; socket = 0
while True:
    socket += A
    if socket >= B:
        break
    count += 1
    socket -= 1

print(count)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]
if B == 1:
    print(0)
elif A >= B:
    print(1)
else:
    ret = 20
    for i in range(2, 20 + 1):
        if A * i > B:
            ret = i
            break
    print(ret)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]
if B == 1:
    print(0)
elif A >= B:
    print(1)
else:
    ret = 0
    for i in range(2, 20 + 1):
        if A * i >= B:
            ret = i
            break
    print(ret)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]
if B == 1:
    print(0)
elif A >= B:
    print(1)
else:
    ret = 0
    for i in range(2, 20 + 1):
        if A * i > B:
            ret = i
            break
    print(ret)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]
if A >= B:
    print(1)
else:
    ret = 0
    for i in range(2, 20 + 1):
        if A * i > B:
            ret = i
            break
    print(ret)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]
if A == B:
    print(1)
else:
    ret = 0
    for i in range(2, 20 + 1):
        if A * i > B:
            ret = i
            break
    print(ret)

Submission status: Wrong Answer

Solution code:
import math
tap, req = [int(x) for x in input().split()]
print(math.ceil(req / tap))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())

if a >= b:
    print(1)
else:

    print (b // a + 1)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

cnt = 0
tap = 1

if tap >= B:
    print(cnt)
    exit()

tap -= 1
cnt += 1

while True:
    tap += A
    cnt += 1
    if tap >= B:
        break
    else:
        tap -= 1

print(cnt)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

cnt = 1
tap = 1

if tap >= B:
    print(cnt)
    exit()

while True:
    tap += A
    cnt += 1
    if tap >= B:
        break
    else:
        tap -= 1

print(cnt)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

cnt = 1

if A >= B:
    print(cnt)
    exit()

tap = A - 1

while tap < B:
    tap += A
    cnt += 1
    if tap >= B:
        break
    else:
        tap -= 1

print(cnt)

Submission status: Wrong Answer

Solution code:
# 12/11 15:50 give up
a,b = map(int,input().split())
ans = 0
t = 0
while b > t:
    ans += 1
    t += a-1
print(ans)

Submission status: Wrong Answer

Solution code:
# 12/11 15:50 give up
a,b = map(int,input().split())
ans = 1
t = a
while b > t:
    ans += 1
    t += a -1
print(ans)

Submission status: Wrong Answer

Solution code:
# 12/11 15:50
a,b = map(int,input().split())
ans = 1
t = a
while True:
    if t >= b:
        print(ans)
        exit(0)
    ans += 1
    t = t-1 + a

Submission status: Wrong Answer

Solution code:
# 12/11 15:50
a,b = map(int,input().split())
ans = 1
t = a
while True:
    if t >= b:
        print(ans)
        exit(0)
    ans += 1
    t = 2*t-1

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
sum=A
cnt=1
while True:
    if sum>=B:
      break
    sum+=A-1
    cnt+=1
print(cnt)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
sum=A
cnt=1
while True:
    sum+=A-1
    cnt+=1
    if sum>=B:
      break
print(cnt)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
sum=A
cnt=1
while sum<=B:
    sum+=A-1
    cnt+=1
print(cnt)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
sum=0
cnt=1
while sum<=B:
    sum+=A+A-1
    cnt+=1
print(cnt)

Submission status: Wrong Answer

Solution code:
import math
def check():
    A,B = map(int, input().split())
    print(math.ceil(B/A))
    
check()

Submission status: Wrong Answer

Solution code:
import math

A,B = map(int, input().split())
print(math.ceil(B/A) if B > 1 else 0)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]

i = 1
while True:
    if i == 1:
        s = A*i
    else:
        s = A*i - (i - 1)
    
    if s >= B:
        break
    i += 1

print(i)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]

i = 1
while True:
    s = A*i - (i - 1)
    
    if s >= B:
        break
    i += 1

print(i)

Submission status: Wrong Answer

Solution code:
import math
 
a, b = [int(i) for i in input().split()]
 
 
print(math.ceil(b / (a - 1) - 1))

Submission status: Wrong Answer

Solution code:
import math

a, b = [int(i) for i in input().split()]


print(math.ceil(b / (a - 1)) - 1)

Submission status: Wrong Answer

Solution code:
a,b=list(map(int,input().split()))

sum=1
cnt=0
for i in range(a+1):
    sum+=a-1
    cnt+=1
    if sum>=b:
        break

print(cnt)

Submission status: Wrong Answer

Solution code:
a,b=list(map(int,input().split()))

sum=1
cnt=0
for i in range(a):
    sum+=a-1
    cnt+=1
    if sum>=b:
        break
print(cnt)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a == b:
    print(1)
    exit()
ans = 1
tmp = a-1
for _ in range(a):
    if a < b:
        ans += 1
        a = a+tmp
print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a == b:
    print(1)
    exit()
ans = 1
for _ in range(a):
    tmp = a-1
    if a < b:
        ans += 1
        a = a+tmp
print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a == b:
    print(1)
ans = 1
for _ in range(a):
    tmp = a-1
    if a < b:
        ans += 1
        a = a+tmp
print(ans)

Submission status: Wrong Answer

Solution code:
A, B = (int(i) for i in input().split())

t = 0
p = 1
while True:
    t += 1
    p -= 1
    p += A
    if p >= B:
        break
print(t)

Submission status: Wrong Answer

Solution code:
import math
a,b = map(int,input().split())
ans = 1
if b>a:
  ans = int(math.log(b,a))
  if b%a!=0:
    ans+=1
print(ans)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
ans = 1
if b>a:
  ans = b//a
  if b%a!=0:
    ans+=1
print(ans)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
ans = b//a
d = b%a
if d!=0:
  ans+=1
print(ans)

Submission status: Wrong Answer

Solution code:
a, b = map(int ,raw_input().split())

ans = 1
while a + (ans-1)*(a-1)<b:
    ans += 1
print ans

Submission status: Wrong Answer

Solution code:
A,B=map(int, input().split())
count=0

while B<(A-1)*count+1:
  count+=1
  
print(count)

Submission status: Wrong Answer

Solution code:
from math import ceil
a, b = tuple(map(int, input().strip().split()))
q, mod = divmod(b, a)
if mod > 0:
  print(q + 1)
else:
  print(q)

Submission status: Wrong Answer

Solution code:
from math import ceil
a, b = tuple(map(int, input().strip().split()))
print(ceil(b / a))

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

for i in range(20):
	if a >= b:
		print(i+1)
		exit()
	a += a - 1

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

for i in range(b):
	if a >= b:
		print(i+1)
		exit()
	a += a - 1

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

for i in range(1, b):
	if a >= b:
		print(i)
		exit()
	a += a - 1

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

for i in range(1, b):
	if a >= b:
		print(i)
		exit()
	a += i * (a-1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

for i in range(b):
	if a * i >= b:
		print(i)
		exit()

Submission status: Wrong Answer

Solution code:
# https://atcoder.jp/contests/abc140/tasks
A,B = map(int, input().split())

ans = 0
for i in range(1,B+1):
    if A == 1:
        ans = 1
        break
    plugin = (A* (i - 1))  + A
    if plugin >= B:
        ans = i
        break

print(ans)

Submission status: Wrong Answer

Solution code:
# https://atcoder.jp/contests/abc140/tasks
A,B = map(int, input().split())

ans = 0
for i in range(1,1000000):
    if A == 1:
        ans = 1
        break
    plugin = (A* (i - 1))  + A
    if plugin >= B:
        ans = i
        break

print(ans)

Submission status: Wrong Answer

Solution code:
# https://atcoder.jp/contests/abc140/tasks
A,B = map(int, input().split())

ans = 0
for i in range(1,10000):
    plugin = (A* (i - 1))  + A
    if plugin  >= B:
        ans = i
        break

print(ans)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
sum = 1
if B == 1:
  print(0)
else:
  for i in range(1,A+1):
    sum = sum + A -1
    if sum >= B:
      break
  print(i)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
sum = 1
if A >= B:
  print(0)
else:
  for i in range(1,A+1):
    sum = sum + A -1
    if sum >= B:
      break
  print(i)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
sum = 1
for i in range(A):
  sum -= 1
  sum += A
  if sum >= B:
    break
print(i+1)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
sum = 1
for i in range(1,A+1):
  sum -= 1
  sum += A
  if sum >= B:
    break
print(i)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
sum = 1
for i in range(A+1):
  sum -= 1
  sum += A
  if sum >= B:
    break
print(i)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
for i in range(21) :
    if b <= a*i-i :
        print(i)
        break

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
for i in range(21) :
    if b <= a*i :
        print(i)
        break

Submission status: Wrong Answer

Solution code:
A,B=input().split()
A=int(A)
B=int(B)


if B%A==0:
  print(int(B/A))
elif B==1:
  print(0)
else:
  print(int(B/A)+1)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

N = 0

while True:
    if B == 1:
        break
    N += 1
    if A+A*(N-1) >= B:
        break
    
print(N)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

N = 0

while True:
    N += 1
    if A+A*(N-1) >= B:
        break
    
print(N)

Submission status: Wrong Answer

Solution code:
A,B=input().split()
A=int(A)
B=int(B)


if B%A==0:
  print(int(B/A))
else:
  print(int(B/A)+1)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

ans  = ((A//B)+1)

if A > B or A ==B :
    print(1)
else:
    print(ans)

Submission status: Wrong Answer

Solution code:
import sys

A, B =map(int, input().split())
x = 0

if(B==1):
    print('0')

while True:
    if(A+(A-1)*x>=B):
        print(x+1)
        sys.exit()
    x+=1

Submission status: Wrong Answer

Solution code:
import sys

A, B =map(int, input().split())
x = 0

while True:
    if(A+(A-1)*x>=B):
        print(x+1)
        sys.exit()
    x+=1

Submission status: Wrong Answer

Solution code:
import sys

A, B =map(int, input().split())
count = 1

if(A>=B):
    print('1')
    sys.exit()

B-=A
if(B%(A-1)>0):
    print(2+B//(A-1))
else:
    print(1+B//(A-1))

Submission status: Wrong Answer

Solution code:
import sys

A, B =map(int, input().split())
count = 1

if(A>=B):
    print('1')
    sys.exit()

B-=A
while True:
    count+=1
    B-=(A-1)
    if(B<=0):
        print(count)
        sys.exit()

Submission status: Wrong Answer

Solution code:
import sys

A, B =map(int, input().split())

if(B//A==0):
    print('1')
    sys.exit()

print(1+(B-A)//(A-1))

Submission status: Wrong Answer

Solution code:
import sys

A, B =map(int, input().split())

if(B-A==0):
    print('1')
    sys.exit()

print(1+(B-A)//(A-1))

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))
a=l[0]
b=l[1]
c=a-1
cnt=1
if(a>b):
  print(0)
else:
  while a<b:
    a=a+c
    cnt+=1
  print (cnt)

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))
a=l[0]
b=l[1]
c=a-1
cnt=1
while a<b:
  a=a+c
  cnt+=1
print (cnt)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

ans = 0
if B // A == 1:
    ans = 1
else:
    ans = 1 + -(-(B - A) // (A - 1))
print(ans)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())

a = 0
if B // A >= 2:
    a = -1
print(-(-(B-a)//A))

Submission status: Wrong Answer

Solution code:

import math

a, b = map(int, input().split())
print(math.ceil(b/a))

Submission status: Wrong Answer

Solution code:
A, B = map(float, input().split())

print(int((B - 1.0) / (A - 1.0) + 1.0))

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())

count_p = 0
count = 0

while True:
    if count == 0:
        count_p += a
    
    else:
        count_p += a-1
    
    count += 1
    
    if count_p >= b:
        break

print(count)

Submission status: Wrong Answer

Solution code:
l=list(map(int,input().split()))
a=l[0]
b=l[1]
nums=[i for i in range(20)]
for n in nums:
  if(b<=a*(n+1)-n):
    print(n+1)
    break

Submission status: Wrong Answer

Solution code:
A, B=map(int, input().split())
S=A
ans= 1
while S < B:
  ans += 1
  S += A-1
print(ans)

Submission status: Wrong Answer

Solution code:
a,b = (int(i) for i in input().split())
ans = 1
s = a
while(s<b):
    s += a-1
    ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
input_list = list(map(int, input().split()))
a = input_list[0]
b = input_list[1]
taps = 1
count = 0
if b == 0:
    print(count)
else:
    taps += a
    count += 1
    while taps < b:
        taps += a-1
        count += 1
    print(count)

Submission status: Wrong Answer

Solution code:
input_list = list(map(int, input().split()))
a = input_list[0]
b = input_list[1]
taps = 0
count = 0
if b == 0:
    print(count)
else:
    taps += a
    count += 1

    while taps < b:
        taps += a-1
        count += 1
    print(count)

Submission status: Wrong Answer

Solution code:
input_list = list(map(int, input().split()))
a = input_list[0]
b = input_list[1]
taps = 0
count = 0
taps += a
count += 1

while taps < b:
    taps += a-1
    count += 1
print(count)

Submission status: Wrong Answer

Solution code:
input_list = list(map(int, input().split()))
a = input_list[0]
b = input_list[1]
taps = 0
count = 0
taps += a
count += 1

while taps < b:
    taps += a-1
    count += 1

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
c=1
while a+(c-1)*(a-1)<b:
    c += 1
print(c)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
c=1
while a*c<b:
    c += 1
print(c)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())

ans = 1

while True:
    if A >= B:
        break
    else:
        A = A + (A - 1)
        ans = ans + 1

print(ans)

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if B % A == 0 :
    print(B//A)
else:
    print(B//A+1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

for n in range(400):
    if (a + (a - 1) * n) >= b:
        print(n + 1)
        exit(0)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

for n in range(20):
    if (a + (a - 1) * n) >= b:
        print(n + 1)
        break

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

for n in range(1, 400):
    if a >= b:
        print(1)
        break
    elif a + (a - 1) * n >= b:
        print(n + 1)
        break

Submission status: Wrong Answer

Solution code:
a,b = list(map(int,input().split()))



if b%(a-1)==0:
    need = b//(a-1)
elif b%(a-1)==1:
    need = b//(a-1)
else:
    need = b//(a-1) + 1

print(need)

Submission status: Wrong Answer

Solution code:
A=list(map(int,input().split()))
count=0
print(max(1,A[1]//A[0] + (A[1]%A[0]!=0)))

Submission status: Wrong Answer

Solution code:
A=list(map(int,input().split()))
count=0
max(1,A[1]//A[0] + (A[1]%A[0]!=0))

Submission status: Wrong Answer

Solution code:
A=list(map(int,input().split()))
count=0
if A[0]>=A[1]:
    count=1
else:
    for i in range(1,10000):
        if A[0]*i<A[1]:
            count+=1
        else:
            count+=1
            break
print(count)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

for n in range(4000):
    if a + (a - 1) * n >= b:
        print(n + 1)
        exit()

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

for n in range(400):
    if a + (a - 1) * n >= b:
        print(n + 1)
        exit()