object Main{
  def main(args:Array[String]):Unit = {
    val sc = new java.util.Scanner(System.in)
    val k = sc.nextLong + 1
    val a = sc.nextLong
    val b = sc.nextLong
    
    if(a >= b){
      println(k)
    }
    else{
      val count = k / (a+1)
      val rem = k % (a+1)
      println(b*count + rem)
    }
  }
}