l = gets.split().map(&:to_i)
d = l[0]
b = 1
while 0 < d
    #売り得
    if l[1] < l[2]
        #売る&買う
        if d == 2
            d -= 2
            buy = l[2] * (b / l[1])
            keep = b % l[1]
            b = buy + keep
        #たたく    
        else
            d -= 1
            b += 1
        end
    #売り損
    else
        d -= 1
        b += 1
    end
end
puts b