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