import kotlin.math.floor

fun main(){
    val (a, b, n) = readLine()!!.split(" ").map { it.toLong() }
    var hikaku = 0.toLong()
    if (n >= b) hikaku = b - 1
    else hikaku = n
    var x = hikaku * a / b
    println(x)

}