peterverebics/CodeNet_Python_118 huggingface dataset:
import math
x = int(input())
a = 100
cnt = 0
while(1):
    cnt += 1
    a = math.floor(a*1.01)
    if a >= x:
        break
print(cnt)
X = int(input())
f=0
c=0
y=100
while f==0:
  c+=1
  yy=float(y)*1.01
  y=int(yy)
  if y>X:
  	f=1
print(c)
x = int(input())
n = 100

ans = 0
while n < x:
    ans += 1
    n = int(n * 1.01)
print(ans)
n=int(input())
 
for i in range(10**18):
 a=(n*(n+0.01))**i
 if a>n:
  print(i+1)
  exit()
x = int(input())

m = 100
y = 0
while  m < x:
    y = y + 1
    m = m + int(m*0.01)

print(y)
money = 100
X = int(input())
years = 1

while money < X:
    money = round(money * 1.01)
    years = years + 1

print(years)
x = int(input())
for i in range(10000):
  if 1.01**i>=0.01*x:
    print(i)
    break
x=int(input())
s=100
count=0
while x>s:
    s=int(s*1.01)
    count+=1
print(count)
import math
x = int(input())
n = 100
count = 0
while(x > n):
  n = math.floor(n * 1.01)
  count += 1
print(count)
import math
S = int(input())
after = 100
cn = 0

while after < S:
    after = (after * 1.01)
    after = math.floor(after)
    cn = cn + 1 
    if (after > S):
        break
    
print(cn)
x=int(input())
s=100
i=0
while s<x:
  s+=s//10
  i+=1
print(i)
import math
X = int(input())
a = math.log(X/100, 1.01)
print(math.ceil(a))
import math
X= int(input())



money = 100
cnt = 0

while True:
    money = 1.01*money
    cnt += 1
    if int(money>=X):
        print(cnt)
        break
X = int(input())
count = 0
x = 100

while  x < X:
  x = int(x*1.01)
  count += 1

print(count)
X = int(input())

count = 0
money = 100
while True:
    count += 1
    money = int(money * 1.01)
    if money >= X:
        print(count)
        exit()
X=int(input())
a=100
n=0
while True:
    a=int((101*a)/100)
    n=n+1
    if a >= X:
        print(n) 
        break
import math
x = int(input())
money = 100
count = 0
while money <= x:
    money = math.floor(money * 1.01)
    count += 1
print(count)
x = int(input())
ans = 0
tmp = 100
while tmp < x:
    tmp *= 1.01
    tmp = int(tmp)
    ans += 1

print(ans)
X = int(input())

n = 0
M = 100
while True:
    n += 1
    M += int(M /100)
    if M >= X:
        print(n)
        break
X=int(input())
mlist=[100]
while mlist[-1]<X:
    m_n=int(mlist[-1]+mlist[-1]*0.01+0.5)
    mlist.append(m_n)
print(len(mlist)-1)
import math
mokuhyo = int(input())
money = 100
count = 0
eps = 1e-10

while True:
  money = money + math.floor(money*0.01)
  count += 1
  if money - mokuhyo >= eps:
    break

print(count)
n=int(input())
s=(n/100)
count=0
while s>1.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 :
    s=(s/1.01)
    count+=1
print(count)
x=int(input())
m=100
ans=0
while m<=x:
    m=int(m*1.01)
    ans+=1
print(ans)
n = int(input())
a = 100
b = 0
while a<n:
  a = int(a*1.01)
  b+=1

print(b)
import math

X = int(input())
s=100.
i=0
while 1:
    s=math.floor(s*1.01)
    i+=1
    if s>=X:
        break
x=int(input())

i=100
j=0
while i<x:
  i+=int(i*0.01)
  j+=1
  
print(j)
import math

x=int(input())
y=100
i=0
while True:
    y += math.floor(y/100)
    i+=1
    if y>=x:
        print(i)
        exit()
X = int(input())
ans = 100
cnt = 0

while True:
    ans = ans*1.01
    cnt += 1
    if X <=ans:
        print(cnt)
        exit()
X = int(input())

c = 0
i = 100
while True:
    c += 1
    i = int(1.01*i)
    if  X <= i:
        break
print(c)
import math
ans=0
x=int(input())
y=100
while y<x:
    ans+=1
    y=math.floor(1.01*y)
print(ans)
import math
x=int(input())
y=100
for i in range(1000000000):
    y=math.floor(1.01*y)
    if y>=x:
        print(i+1)
        exit()
#!/usr/bin/env python3
import sys
import decimal
def input():
    return sys.stdin.readline()[:-1]

def main():
    X = int(input())

    y = 100
    ans = 0
    while y < X:
        ans += 1
        y = int(decimal.Decimal(y * 1.01))
    print(ans)

if __name__ == '__main__':
    main()
X=int(input())
def ans165(X:int):
    cash=100
    count=0
    while True:
        cash=int(cash*1.01)
        count += 1#利子をつける回数だけcountを増やす
        if cash>=X:#cashがXの値以上になったらループ終了
            break
    return count
print(ans165(X))
kane = 100
x = int(input())
year = 0
while kane < x:
    kane = int(kane * 1.01)  #100 * 1.01のyear乗
    year += 1
print(year)
x = int(input())
yokin = 100
for i in range(1, 10000000000):
    yokin = int(1.01 * yokin) 
    if (yokin >= x):
        print(i)
        exit()
X = int(input())
m = 100
y = 0
while  m < X :
    m += int(m/100)
    y += 1
print(y)
X=int(input())
a=100.0
i=0
while True:
    if a>=X:
        print(i)
        exit()
    a+=int(a/100)
    i+=1
x = int(input())
a = 100
i = 0
while a <= x:
  i += 1
  a = int(a * 1.01)
print(i)
import math
X=float(input())
i=0
y= 100

while X >= y:
	i=i+1
	y=y*1.01
	y=math.floor(y)

print(i)
a = list(map(int,open(0).read().split()))
i = 100
c = 0
while i < a[0]:
  i = int(i*1.01)
  c += 1
print(c)
X = int(input())

n = 100
for i in range(10**18):
    n = int(n*1.01)
    if n >= X:
        print(i)
        exit()
X = int(input())
cnt = 0
yokin = 100
while X>yokin:
    yokin += int(yokin/100)
    cnt += 1
print(cnt)
import math

x = int(input())
bank = 100

y = 0
while bank < x:
    bank += math.floor(bank/100)
    y += 1
print(y)
import math
x = int(input())
now = 100
y = 0
while now < x:
    now = now + math.floor(now * 0.01)
    y += 1
print(y)
x = int(input())
n = 100
cnt = 0
while n < x:
    n = int(n * 1.01)
    cnt += 1
print(cnt)
X = int(input())
money = 100
yr = 0

while money <= X:
    money += int(money*0.01)
    yr += 1

print(yr)
X=int(input())
Y=100
Z=0
while Y<X:
    Y*=1.01
    Z+=1
print(Z)
import math

X=int(input())
# a=int(input())
#A,B=map(int,input().split(" "))
#a=[int(_) for _ in input().split(" ")]

i=0
t=100

while t <= X:
  t = math.floor(t * 1.01)
  i += 1

#print(a,b)
print(i)
import math
X = int(input())
yokin=100
year=0
while yokin>=X:
    yokin=math.floor(yokin*1.01)
    year+=1
print(year)
X = int(input())
cnt = 0
A = 100
while X<A:
	A = A*1.01
	cnt+=1
print(cnt)
# -*- coding: utf-8 -*-

X=int(input())
i=0
while(i<X):
    d=int(i*1.01)
    i+=1
print(i)
X = int(input())
y = 0
x = 100

while(x < X):
  x = int(x * 1.01)
  y += 1
 
print(y)
X = int(input())

Y = 100
years = 0
while Y <= X:
    Y = int(Y * 1.01)
    years += 1

print(years)
x = int(input())
now = 100
for i in range(1,100001):
  risi = now*0.01
  if now + risi >= x:
    print(i)
    exit()
  now += risi//1
X=int(input())
m=100
a=0
for i in range(1,4000):
  m*=1.01
  if m>=X:
    a=i
    break
print(a)
money = 100
x = int(input())
#print(x)
cnt = 0
while money <= x:
  money += money * 0.01
  cnt += 1
  #print(cnt,money)
print(cnt)
X = int(input())
ans = 0
b = 100

while b < X:
    b += b / 100
    ans += 1

print(ans)
x=float(input())
total=100
years=0
while total<x:
  total=(total*1.01)
  years+=1
print(years)
import sys
read = sys.stdin.read
readlines = sys.stdin.readlines
from math import floor
def main():
    x = int(input())

    r = 0
    m = 100.0
    while m < x:
        r += 1
        m = floor(m * 1.01)
    print(r)

if __name__ == '__main__':
    main()
X = int(input())
money = 100
y = 0
while True:
  money = int(101 * money / 100)
#  print(money)
  y += 1
  if money >= X:
    print(y)
    break
import math

def readInt():
	return int(input())
 
def readInts():
	return list(map(int, input().split()))
 
def readChars():
	return input().split()

x = readInt()
m = 100
n = 0

while 1:
	if m>x:
		break
	n+=1
	m=math.floor(m*1.01)

print(str(int(n)))
X = int(input())
start = 100
year = 0
if start < X:
  start = int(start * 1.01)
  year += 1
else:
  print(year)
import math

X = int(input())

a = math.log(X/100.0,1.01)

print(math.ceil(a))
x = int(input())
deposit = 100
year = 0
rate = 1.01
while(deposit < x):
  deposit = int(deposit * rate)
  year += 1
print(year)
from math import floor

x = int(input())
amount = 100
count = 0

while amount < x:
    amount += floor(amount * 0.01)
    count += 1

print(count)
X=int(input())
a=100
n=0
while True:
    a=int(a*101/100)
    n=n+1
    if a >= X:
        print(n) 
        break
#!/usr/bin/env python
# -*- coding: utf-8 -*-


def main():
    X = int(input())

    cnt = 0
    result = 100
    while X >= result:
        result *= 1.01
        result = int(result)
        cnt += 1
    print(cnt)


if __name__ == "__main__":
    main()
import math
X=float(input())
i=0
y= float(100)

while X >= y:
	i=i+1
	y=y*1.01
	y=math.floor(y)

print(i)
import math
X =int(input())

deposit = 100
year = 0
while deposit<X:
  deposit = deposit+int(deposit/100)
  #print(deposit)
  year+=1
  
print (year)
x=int(input())
cnt=0
money = 100
while(1):
  cnt += 1
  money = int(money*1.01)
  if money >= x:
    print(cnt)
    quit()
import sys
from math import sqrt, gcd, ceil, log
from bisect import bisect
from collections import defaultdict, Counter
inp = sys.stdin.readline
read = lambda: list(map(int, inp().strip().split()))



def solve():
	n = int(input()); x = 100
	y = 0
	while x < n:
		x += int(x*.01)
		y += 1
	print(y)


	





		

if __name__ == "__main__":
	solve()
import math

x = int(input())
n = 100
i = 0
while n <= x:
    n += n * 0.01
    n = math.floor(n)
    i += 1
print(i)
a = 100
x = int(input())
count = 0

while a < x:
  a = a + int(a * 0.01)
  count += 1

print(count)
import math

x = int(input())
saving = 100
count = 0
while x >= saving:
  saving += math.floor(saving * 0.01)
  count += 1
print(count)
x = int(input())
b = 100
cnt = 0

while b < x:
  cnt+=1
  b = int(b * 1.01)

print(cnt)
X = int(input())
money = 100
year = 0
while money<X:
  money = int((money*101)/100)
  year+=1
print(year)
n=int(input())
s=(n/100)
count=0
while s>1.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 :
    s=(s//1.01)
    count+=1
print(count)
# coding: utf-8

import math
def main():
    x = int(input())
    
    money = 100.0
    i = 0
    while money < x:
        i += 1
        money = math.floor(101 * money / 100)
    
    print(i)
    
main()
import math
X=int(input())
total=100
count=0
while X>=total:
    total = math.floor(total*1.01)
    count +=1
print(math.ceil(count))
import math
x = int(input())

temp = 100
count = 0
while(temp < x):
    temp += math.floor(temp * 0.01)
    count += 1

print(count)
x = int(input())
i = 0
k = 100
while True:
  if(k>=x):
    break
  else:
    k = (k*1.01)//1
    i+=1
print(i)
x=int(input())
c=100
year=0
while (c<=x):
  year+=1
  c+=(c*1/100)
print(year)
X=int(input())
answer=0
y=100
while y<=X:
    answer+=1
    y*=1.01
    y=int(y)
print(answer)
import math
X=int(input())
N=int((math.log(X)-math.log(100))/100)+1
print(N)
import math
x = int(input())
total = 100
year = 0
while x > total:
	total = math.floor(total * 1.01)
	year += 1
print(year)
X = int(input())

n = 100
for i in range(1, 10**18):
    n += int(n*0.01)
    if n >= X:
        print(i)
        exit()
n=int(input())
m=100
c=0
while(m<n):
  m+=(m/100)
  c+=1
print(c)
import math
X = int(input())
default = 100
year = 1
while True:
    default = default + math.floor(default * (1 / default))
    print(default)
    if default == X:
        print(year)
        break
    year += 1
import math

def readInt():
	return int(input())
 
def readInts():
	return list(map(int, input().split()))
 
def readChars():
	return input().split()

x = readInt()
m = 100
n = 0

while 1:
	if m>x:
		print(n)
		break
	n+=1
	m=math.floor(m*1.01)
import math
X=int(input())
y=1
for i in range(1,X):
    if math.floor(100*((1.01)**i)) >= X:
        print(y)
        break
    else:
        y +=1
X=int(input())

x=100
for i in range(10**4):
    x = int(x*1.01)
    if X <= x:
        print(i+1)
        break
X = int(input())
y = 0
x = 100

while(x < X):
  x = int(x * 1.01)
  y += 1

print(y)
x = int(input())
y = 100
i = 0
while y < x:
    y = int(y * 1.01)
    i = i + 1
print(i)
import math
X=int(input())
a=100
n=0
while True:
    a=math.floor(a*float(101/100))
    n=n+1
    if a >= X:
        print(n) 
        break
X = int(input())

i = 1
ans = 100

while(True):
    ans = ans * 1.01
    
    if(ans >= X):
        print(i)
        break

    if(ans < X):
        i+=1
        continue
x = int(input())
y = 100
count = 0

while y < x:
    y = 1.01*y
    count += 1

print(count)
import math
x = int(input())

m = 100
cnt = 0
while 1:
    cnt += 1
    m = math.floor(m * 1.01)
    if m > x:
        break
print(cnt)
import sys
input = sys.stdin.readline
ins = lambda: input().rstrip()
ini = lambda: int(input().rstrip())
inm = lambda: map(int, input().split())
inl = lambda: list(map(int, input().split()))

n = ini()
ans = 0
count = 100
while count < n:
    count *= 1.01
    count = int(count)
    ans += 1
print(ans)
X = float(input())

y = 0
z = 100
while True:
  y += 1
  z = z*1.01
  if z >= X:
    print(y)
    break
X = int(input())
money = 100
year = 0

while X > money:
    year += 1
    money += int(money * 0.01)

print(year)
X = int(input())
a = 100
i = 0

while a < X:
    a += a / 100
    i += 1
print(i)
x = int(input())

a = 100
cnt = 0

while a <= x:
  a = int(a * 1.01)
  cnt += 1

print(cnt)
X = float(input().rstrip())
val = 100
count = 0
while True:
    val *= 1.01
    count += 1
    if val >= X:
        break
print(count)
x=int(input())
de=100
count=0
while de<x:
    count+=1
    de*=1.01
    de=int(de)
print(count)
X = int(input())
yen = 100
count = 0

while True:
  yen *= 1.01
  count += 1
  
  if int(yen) >= X:
    print(count)
    exit()
import math

X = int(input())
K = 100
cnt = 0
while 1:
	cnt += 1
	K = K * 1.01
	if math.floor(K) >= X:
		print(cnt)
		break
X = int(input())
ans = 0
r = 0.01
s = 100
MAX = 10**8
i = 0
while i < MAX:
    s = int(s * (1 + r))
    i = i + 1
    if(X <= s) :
        ans = i
        break
print(ans)
import math

x = int(input())
balance = 100
count = 0
while x > balance:
    balance *= 1.01
    balance = math.floor(balance)
    count += 1
print(count)
x = int(input())
m = 100

import math
count = 0
while m < x:
    m += math.floor(m / 100)
    count += 1

print(count)
x = int(input())
m = 100

import math
count = 0
while True:
    if m >= x:
        print(count)
        break
    m = math.floor(m * 1.01)
    count += 1
x = int(input())
y = 100
i = 0
while y < x:
    y += int(y / 100)
    i = i + 1
print(i)
x=int(input())
m=100.0
c=0
while m<x:
    c+=1
    m=m*1.01
    

print(c)
x=int(input())
c=100
b=0
while True:
  c*=1.01
  c=int(c)
  b+=1
  if c>=x:
    break
print(b)
x = int(input())
m = 100
count = 1
while x > m:
    m = m + m/100
    count += 1
print(count)
from decimal import Decimal 
import math

def main():
    x = Decimal(input())
    y = 0
    p = Decimal(100)
    while p < x:
        p *= Decimal(1.01)
        p = math.floor(p) 
        y += 1

    print(y)

main()
import math
n = int(input())
i = 100
count = 0
while i < n:
  i += math.floor(i*1.01)
  count += 1
print(count)
def main():
    import sys
    read = sys.stdin.buffer.read
    readline = sys.stdin.buffer.readline
    readlines = sys.stdin.buffer.readlines
    sys.setrecursionlimit(10 ** 7)

    from math import floor

    x = int(readline())
    v = 100
    for i in range(1, 10 ** 6):
        v = floor(v * 1.01)
        if v >= x:
            print(i)
            break


if __name__ == '__main__':
    main()
X = int(input())
depo = 100
c = 0
while depo <= X:
    c+=1
    depo = int(depo*1.01)

print(c)
def main():
    X = int(input())
    v = 100
    ans = 0
    while True:
        ans += 1
        v += int(v / 100)
        if v >= X:
            print(ans)
            break


if __name__ == '__main__':
    main()
def main():
    X = int(input())
    cnt = 0
    money = 100
    while money < X:
        cnt += 1
        money = int(money * 1.01)
        #print(money)

    return cnt

print(main())
x = int(input())
s = 0
t = 100
while True:
  if t >= x:
    break
  t = int(t*1.01)
  s = s + 1
print(s)
x = int(input())
y = 1
z = 100
 
while True:
    z = z*(1.01)
    if z < x:
        z = int(z)
        y += 1
    else:
        break
 
print(str(y))
x = int(input())
money = 100
year = 0

while True:
  money = int(money * 1.01)
  year += 1
  if money >= x:
    print(year)
    exit()
x=int(input())
mon = 100
cnt = 0
while 1:
    if mon < x:
        mon = int(mon*1.01)
        cnt += 1
    else:
        print(cnt)
        break
import math
def fact(n):
    ans = 1
    for i in range(2, n+1):
        ans*= i
    return ans
def comb(n, c):
    return fact(n)//(fact(n-c)*c)

x = int(input())
p = 100
ans = 0
while(p < x):
    p += p/100
    ans+=1
print(ans)
x = int(input())

ans = 100
cnt = 0
while(True):
  ans += round(ans*0.01)
  cnt += 1
  if ans >= x:
    print(cnt)
    break
import math
X = int(input())

count = 0
s = 100
while s < X:
    s = math.floor(s*1.01)
    count += 1
print(count)
X = int(input())
count = 0
save = 100
while save < X:
  save *= 1.01
  save = int(save)
  count += 1
print(count)
import math

x = int(input())

ans = 0
m = 100
while m < x:
    m = math.floor(m*1.01)
    ans += 1

print(ans)
import math
x = int(input())
y = 100

for i in range(1,10**18):
  y = math.floor((y*1.01))

  if y >= x:
    print(i)
    break
X = int(input())
a = 100
for i in range(20000):
  a *= 1.01
  if a >= X:
    break
print(i+1)
x=int(input())
i=0
X=100
while x>=X:
    X=X*1.01//1
    i+=1
print(i)
import math
from decimal import Decimal

X = int(input())
A = 100
for i in range(1, 8000):
  A = math.floor(A * 1.01)
  if A >= X:
    print(i)
    exit()
def main():
	import sys 
	input=sys.stdin.readline 

	money=100
	x=int(input())

	for i in range(1,4000):
		money *=0.01 
		money=int(money)

		if money >=x:
			print(i)
			exit()

if __name__=='__main__':
	main()
import math
x=int(input())
count=0
y=100
while y<x:
    y+=math.floor(y*0.01)
    count+=1
print(count)
s=int(input())
a=100
b=0
while a<=s:
  a=int(a*(1+0.01))
  b+=1
print(b)
ini = 100
end_val = int(input())
cal=ini
year=0
while end_val > cal:
    cal= int(cal*1.01**year)
    year +=1
    

print(year)
x = int(input())
ans = 0
now = 100
while (now <= x):
    ans += 1
    now = int(now*1.01)
print(ans)
import math 
n=int(input())
print(math.ceil(math.log(n/100,1.01)))
import math
x = int(input())
t = 100
count = 0
print(1/100)
while t < x:
  count += 1
  t = t+(math.floor(t*1/100))
print(count)
X = int(input())

money = 100
year = 0
while money < X:
    year += 1
    money = int(money*1.01)

print(year)
def N():
    return int(input())
def L():
    return list(map(int,input().split()))
def NL(n):
    return [list(map(int,input().split())) for i in range(n)]
mod = pow(10,9)+7
#import numpy
y = 100
x = N()
cnt = 0
while(1):
    cnt += 1
    y = int(y*1.01)
    #print(y)
    if y >= x:
        print(cnt)
        break
nen=0
x=int(input())
a=100
while True:
  a*=1.01
  a=int(a)
  if a>=x:
    break
  nen+=1

print(nen+1)
X =int(input())
Now_Rate = 100
Counter = 0
while Now_Rate < X:
    Now_Rate = Now_Rate*1.01
    Counter += 1
print(Counter)
import math
X = int(input())
c = 0

for i in range(X-100):
  B = X / 1.01
  D = X - B
  X = X - D
  c = c + 1
  if X <= 100:
    break
    
print(c)
n=int(input())
 
for i in range(10**18):
 a=(int(100*(1+0.01)))**i
 if a>=n:
  print(i+1)
  exit()
n = int(input())
n = n

c = 0
m = 100
while True:
    m = m * 1.01
    c += 1
    if m > n:
        break
print(c)
import math

x = int(input())
y = math.ceil(math.log(x/100, 1.01))
print(y)
x = int(input()) 

cnt = 0
res = 100
while res <= x:
    res = res * 1.01
    cnt += 1

print(cnt)
import math

def readInt():
	return int(input())
 
def readInts():
	return list(map(int, input().split()))
 
def readChars():
	return input().split()

x = readInt()
m = 100
n = 0

while 1:
	if m>x:
		break
	n+=1
	m=math.floor(m*1.01)

print(int(n))
X=int(input())
res=100
y=0
while(True):
    if res>=X:
        print(y)
        exit()
    res*=1.01
    y+=1
x = int(input())
total = 100
year=0
while True:
    if total >= x:
        print(year)
        break
    else:
        total = total + total * 0.01
        year += 1
a=100
b=0
X=int(input())
while a<X:
    a=(a*1.01)//1
    b+=1
if a!=X:
    print(b)
else:
    print(b)
a = int(input())
ans = 0
cur = 100
while cur < a:
  cur = int(cur * 1.01)
  ans += 1
print(ans)
x = int(input())
n = 100
c = 0
while x >= n:
  n = int(n * 1.01)
  c += 1
print(c)
year = 0
a = 100
x = int(input())

while a < x:
    a *= 1.01
    a = int(a)
    year += 1

print(year)
import math

X = int(input())

base = 100
rate = 1.01
year = 1

while True:
    base = math.floor(base * rate)
    if base > X:
        print(year)
        break
    year += 1
from math import floor
X = int(input())

amt = 100
ans = 0
while amt <= X:
    amt *= 1.01
    amt = floor(amt)
    ans += 1

print(ans)
a = int(input())
b = 100
n = 0
while b < a:
  b = int(b * 1.01)
  n += 1
print(n)
import math
x=int(input())
mon = 100
cnt = 0
while 1:
    if mon < x:
        mon = math.floor(mon*1.01)
        cnt += 1
    else:
        print(cnt)
        break
import math
X= int(input())


n = math.log10(X/100)/math.log10(1.01)

print(int(n+1))
import sys
sys.setrecursionlimit(10000000)
import math
X = int(input())
x = 100
ans = 0
while x < X:
    x = math.floor(x * 101 / 100)
    ans += 1
print(ans)
# D - Floor Function
def main():
    A, B, N = map(int, input().split())
    f = lambda x: (A * x) // B - A * (x // B)
    print(f(min(B - 1, N)))


if __name__ == "__main__":
    main()
a, b, n = [int(i) for i in input().split()]
x = min(b - 1, n)
print((a*x//b)-a*(x//b))
# coding: utf-8
A,B,N=map(int,input().split())

min_x = 1
max_x = N

def f(x):
    y = (A*x)//B - A*(x//B)
    return y
    
ans=f(min(B-1,N))
print(ans)
import math
a, b, n = map(int, input().split())
ans = -float('inf')
n = min(b-1, n)
f1 = math.floor(a*n/b)
f2 = math.floor(n/b)
ans = f1-(a*f2)
print(ans)
import math
import sys
input = sys.stdin.readline

def main():
    A, B, N = map(int, input().split())

    x = min(B-1, N)
    print(math.floor(A*x/B) - A*math.floor(x/B))

main()
def resolve():
    import math
    a, b, n = map(int, input().split())
    if b<= n:
        x = b-1
    else:
        x = n
    print(math.floor(a*x/b) - a*math.floor(x/b))
resolve()
A, B, N = map(int, input().split())
from math import floor

if B <= N:
    x = B - 1
else:
    x = N
cand = floor(A*x/B) - A * floor(x/B)
print(cand)
a, b, n = [int(elem) for elem in input().split()]

if b <= n:
    res = int(a * (b-1) / b) - a * int((b-1) / b)
else:
    res = int(a * n / b) - a * int(n / b)
print(res)
A,B,N=map(int,input().split())
if N>=B-1:
    x=B-1
else:
    x=N
print(int(A*x/B)-A*int(x/B))
# abc165

a,b,n=map(int,input().split())

if n>=b-1:
    print(a*(b-1)//b)
else:
    print(a*n//b)
a, b, n = map(int, input().split())

ans = 0

if n < b:
    ans = int(a*n/b)
    print(ans)

else:
    ans = int(a * (b - 1) / b)
    print(ans)
A, B, N = map(int, input().split())
def f(x):
  return (A*x)//B - A*(x//B) 

if B-1 < N:
  print(f(B-1))
else:
  print(f(N))
def fanc():
  a,b,n=map(int,input().split())
  x=min(b-1,n)
  max_res=int(a*x/b)-a*int(x/b)
  print(max_res)
  
if __name__=="__main__":
  fanc()
#create date: 2020-05-02 21:18

import sys
stdin = sys.stdin

def ns(): return stdin.readline().rstrip()
def ni(): return int(ns())
def na(): return list(map(int, stdin.readline().split()))

def main():
    a, b, n = na()
    x = min(n, b - 1)
    ans = a * x // b - a * ( x // b)
    print(ans)

if __name__ == "__main__":
    main()
def f(x, A, B):
    return int(A*x / B) - A * int(x / B)
A, B, N = map(int, input().split())

print(f(min(B-1, N), A, B))
a,b,n = list(map(int,input().split()))
if n<b:
    x=n
    print(int(a*x/b)-a*int(x/b))
else:
    x=b-1
    print(int(a*x/b)-a*int(x/b))
def main():
    A, B, N = map(int, input().split())

    x = min(B - 1, N)

    ans = (A * x // B) - A * (x // B)
    print(ans)


if __name__ == '__main__':
    main()

# editorial
# f(x)=(A * x // B) - A * (x // B)
# f(x+B)==f(x)
# 周期性があるので
# 0<=x<Bの場合を考えればよい
# (A * x // B)は広義単調増加
# A * (x // B) == 0
# 定義域で最大のx=min(B-1,N)のとき最大になる
a, b, n = list(map(int, input().split()))
x = min(b - 1, n) # b-1がいいけど、上限 nの制約あり
ans = int(a * x / b)
print(ans)
A, B, N = map(int, input().split())
x = min(N,B-1)
print(A*x//B-A*(x//B))
a, b, n = map(int, input().split())
x = min(b-1, n)
ans = (a * x // b) 
print(ans)