"use strict";
function Main(input) {
  const nums = input.split(" ").map(Number);
  const set = nums[0] / (nums[1] + nums[2]);
  const left = nums[0] % (nums[1] + nums[2]);
  console.log(Math.floor(nums[1] * set + left));

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