// 'use strict';
// function main(input) {
//   const arr = input.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));

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

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

function main(){
  var n = bigInt(next(1));
  var a = bigInt(next(1));
  var b = bigInt(next(1));
  var ab = a.add(b);
  var ans = n.divide(ab);
  var rest = n.minus(ans.times(ab));
  ans = ans.times(a);
  if(rest.compare(a) > 0)ans = ans.plus(a);
  else ans = ans.plus(rest);
  return ans.toString();
}