function toPlainValue(rawVal) {
    var splitVal = rawVal.toString().split('e');

    if(splitVal.length === 1) return splitVal[0];

    var period = splitVal[0].indexOf('.');

    if (0 < period ) splitVal[1] -= period ;

    return new Number(rawVal).toFixed(Math.abs(splitVal[1]));   
}



var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var input_arr = input.split(' ');
var n = parseInt(input_arr[0]);
var b = parseInt(input_arr[1]);
var r = parseInt(input_arr[2]);


var less = n % (b + r);

var sum = b * parseInt(n / (b + r), 10);
if (less <= b) {
sum += less;
} else {
sum += b;
}

console.log(toPlainValue(sum));
