'use strict'
function main(inp) {
  inp = inp.trim().split(' ').map(x => x * 1);
  let ans = 0;
  let N = inp[0];
  let A = inp[1];
  let B = inp[2];
  let d = Math.floor(N/(A+B));
  let r = Math.floor(N%(A+B));
  console.log(d*A + r);
}

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