function main(input){
    inputI = input.split(' ');
    number = parseInt(inputI[0]);
    blue = parseInt(inputI[1]);
    red = parseInt(inputI[2]);
    out=0;
    omake=0;
    roop=0;

    roop=Math.floor(number/(blue+red));
    out=roop*(blue);
    omake=number-roop*(blue+red);
    if(omake<blue){
        out=out+omake;
    }
    else{
        out=out+blue;
    }

    console.log(out);

}

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