d = int(input()) a, b = map(int, input().split()) x = d * b / (a + b) print(int(x * a + (d - x) * b + 0.5))