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

x = (n//b)*b - 1



if x == -1:

    x = n



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

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



if n <= b - 1:

    x = n

else:

    x = n - (n%b + 1)



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

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

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

-x = (n // b) * b - 1 -if x == -1: +if n <= b - 1: +else: +    x = n - (n % b + 1)