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

x = min(b-1, n)

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

print(ans)

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

x = min(b-1, n)

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

print(ans)

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

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

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