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

alpha = A // B

beta = A % B

q = min(N, B - 1)



ans = alpha * q + (beta*q//B)

print(ans)
A, B, N = list(map(int, input().split()))

x = min(N, B-1)

print((A*x//B - A*(x//B)))
A, B, N = list(map(int, input().split()))
alpha = A // B
beta = A % B
q = min(N, B - 1)
ans = alpha * q + (beta * q // B)
print(ans)

A, B, N = list(map(int, input().split()))
x = min(N, B - 1)
print((A * x // B - A * (x // B)))

-alpha = A // B -beta = A % B -q = min(N, B - 1) -ans = alpha * q + (beta * q // B) -print(ans) +x = min(N, B - 1) +print((A * x // B - A * (x // B)))