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