'use strict';
function main(input) {
  const arr = input.trim().split(' ');
  const a = Number(arr[0]);
  const b = Number(arr[1]);
  const c = Number(arr[2]);
  const d = a % (b + c);
  const e = Math.floor(a / (b + c));

  if (d > b) {
    console.log((e + 1) * b);
  } else {
    console.log(e * b + d);
  }
  
}

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