function MainD(input){
    const [A, B, N] = input.split(' ');
    const x = Math.min(B-1, N);
    const answer = Math.floor((A * x)/B) - A *  Math.floor(x/B);
    console.log(answer);
}
MainD(require("fs").readFileSync("/dev/stdin", "utf8").trim());
