k,a,b = list(map(int,input().split()))





if b-a <= 1 or k <= a:

    print((k+1))

else:

    print((((k-(a+1))//2)*(b-a)+b+((k-(a+1))%2)))
K,A,B = list(map(int,input().split()))



if B-A < 3:

    print((K+1))

else:

    if A > K-1:

        print((K+1))

    else:

        count = K-A+1

        shou = count//2

        if count%2 == 1:

            print((A+(B-A)*shou+1))

        else:

            print((A+(B-A)*shou))
k, a, b = list(map(int, input().split()))
if b - a <= 1 or k <= a:
    print((k + 1))
else:
    print((((k - (a + 1)) // 2) * (b - a) + b + ((k - (a + 1)) % 2)))

K, A, B = list(map(int, input().split()))
if B - A < 3:
    print((K + 1))
else:
    if A > K - 1:
        print((K + 1))
    else:
        count = K - A + 1
        shou = count // 2
        if count % 2 == 1:
            print((A + (B - A) * shou + 1))
        else:
            print((A + (B - A) * shou))

-k, a, b = list(map(int, input().split())) -if b - a <= 1 or k <= a: -    print((k + 1)) +K, A, B = list(map(int, input().split())) +if B - A < 3: +    print((K + 1)) -    print((((k - (a + 1)) // 2) * (b - a) + b + ((k - (a + 1)) % 2))) +    if A > K - 1: +        print((K + 1)) +    else: +        count = K - A + 1 +        shou = count // 2 +        if count % 2 == 1: +            print((A + (B - A) * shou + 1)) +        else: +            print((A + (B - A) * shou))