d = input() a, b = input().split() d = int(d) a = int(a) b = int(b) d_b = int(d*a/(a+b)) d_a = d-d_b cost = d_a*a+d_b*b print(cost)