# coding: utf-8 import sys import math sys.setrecursionlimit(10 ** 6) def II(): return int(input()) def ILI(): return list(map(int, input().split())) def read(): N = II() C, V = ILI() return N, C, V def do_copy_paste(now_length, now_cost, now_clip, N, C, V, n_good): if now_length >= N: return now_cost if now_cost >= n_good: return n_good if now_clip == 0: copy = do_copy_paste(now_length, now_cost + C, now_length, N, C, V, n_good) return copy if now_length == now_clip: paste = do_copy_paste(now_length + now_clip, now_cost + V, now_clip, N, C, V, n_good) return paste copy = do_copy_paste(now_length, now_cost + C, now_length, N, C, V, n_good) paste = do_copy_paste(now_length + now_clip, now_cost + V, now_clip, N, C, V, min(copy, n_good)) return min(copy, paste) def solve(N, C, V): n_root = int(math.log(N, 2)) + 1 n_good = (C + V) * n_root ans = do_copy_paste(1, 0, 0, N, C, V, n_good) return ans def main(): params = read() print(solve(*params)) if __name__ == "__main__": main()