function Main(input) {
	input = input.split(" ");
	var N = parseInt(input[0]);
	var A = parseInt(input[1]);
	var B = parseInt(input[2]);

	var AB = A + B;

	var div = parseInt(N / AB);

	var md = N % AB;
	var blue = div * A;
	if(md >= A) {
		blue = blue + A;
	} else {
		blue = blue + md;
	}

	console.log(blue);

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