d = int(input()) a, b =map(int, input().split()) x = d / (a + b) * a if a == 0 or b == 0: print(0) else: ans = x * a + (d - x) * b print(round(ans))