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

  console.log(e * b + Math.min(d, b));
  
}

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