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



ans = 0



x = min(N, B-1)



A_x = A * x

left_ = int(A_x / B)

right_ = A * int(x / B)

fnc_ = left_ - right_

ans = fnc_



print(ans)

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



ans = 0



x = min(N, B-1)



A_x = A * x

ans = int(A_x / B) - A * int(x / B)



print(ans)

A, B, N = list(map(int, input().split()))
ans = 0
x = min(N, B - 1)
A_x = A * x
left_ = int(A_x / B)
right_ = A * int(x / B)
fnc_ = left_ - right_
ans = fnc_
print(ans)

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

-left_ = int(A_x / B) -right_ = A * int(x / B) -fnc_ = left_ - right_ -ans = fnc_ +ans = int(A_x / B) - A * int(x / B)