D=int(input()) A,B=map(int,input().split()) S=A+B M=D/S*A N=D/S*B print(int(M*B+N*A))