k, a, b = gets.split.map(&:to_i)
n2 = ((k-1+1)/(a+1))
#p n2
if a < (b - 2)
  n = n2
  # loop do
  #   if ((k-n+1)/(a+1)) < (n + 1)
  #     break
  #   else
  #     n += 1
  #   end
  # end
  loop do
    if ((k-n+1)/(a+1)) > (n - 1)
      break
    else
      n -= 1
    end
  end
  #p n
  #p ((k-n+1)%(a+1))
  puts (n*b) + ((k-n+1)%(a+1))
else
  puts (1 + k)
end
#1023303012 29 39
# # 33009774