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



if n<b:

    ans =  (a*n)//b-a*(n//b)



else:

    m = int(n//b)

    m = m*b-1

    ans = (a*m)//b-a*(m//b)

print(ans)

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

from math import floor

if n<b:

    ans =  floor(a*n/b)-a*floor(n/b)



else:

    m = n//b

    m = m*b-1

    ans = a*m//b-a*floor(m/b)

print(ans)

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

a, b, n = list(map(int, input().split()))
from math import floor

if n < b:
    ans = floor(a * n / b) - a * floor(n / b)
else:
    m = n // b
    m = m * b - 1
    ans = a * m // b - a * floor(m / b)
print(ans)

+from math import floor + -    ans = (a * n) // b - a * (n // b) +    ans = floor(a * n / b) - a * floor(n / b) -    m = int(n // b) +    m = n // b -    ans = (a * m) // b - a * (m // b) +    ans = a * m // b - a * floor(m / b)