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

n = min(n, b-1)



print((int((a * n) / b) - a * int(n / b)))
a, b, n = list(map(int, input().split()))

syou = n // b

if syou >= 1:

    n = b * 1 - 1

 

print((int((a * n) / b) - a * int(n / b)))
a, b, n = list(map(int, input().split()))
n = min(n, b - 1)
print((int((a * n) / b) - a * int(n / b)))

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

-n = min(n, b - 1) +syou = n // b +if syou >= 1: +    n = b * 1 - 1