function Main(input) {
  var tmp = input.trim()
  var N = parseInt(tmp.split(' ')[0])
  var A = parseInt(tmp.split(' ')[1])
  var B = parseInt(tmp.split(' ')[2])

  var ans = Math.floor(N / (A + B) * A)
  var min = N % (A + B)
  var result = ans + Math.min(ans, min)

  console.log(result)
  return result
}

Main(require('fs').readFileSync('/dev/stdin', 'utf8'))