function main(input) {
    const args = input.split(' ');
    const n = parseInt(args[0], 10);
    const a = parseInt(args[1], 10);
    const b = parseInt(args[2], 10);

    var feeTrain = n * a;
    var feeTaxi = b;
    var feeLess = Math.min(feeTrain, feeTaxi);

    console.log(feeLess);
}

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