def Main(): d=int(input()) a,b=map(int,input().split()) if a*b==0: print(0) return print(d*a//(a+b)*a+(d-d*a//(a+b))*b) Main()