import java.util.Scanner;

public class Main
{
	public static void main(String[] args) {
	    Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int A = s.nextInt();
        int B = s.nextInt();
        int rep = A * (N/(A+B)) + N%(A+B);
        System.out.println(rep);
	}
}
