const main = (str) => {
    const [A,B,N] = str.split(' ');
    const b = B>N ? N : B-1;
    const result = Math.floor(A*b/B);
    console.log(result);
};

main(require('fs').readFileSync('/dev/stdin', 'utf8'));