import java.io.*; import java.util.*; public class Main_yukicoder555 { private static Scanner sc; private static Printer pr; private static void solve() { int n = sc.nextInt(); int c = sc.nextInt(); int v = sc.nextInt(); int min = c + v * (n - 1); PriorityQueue pq = new PriorityQueue<>(); pq.add(new Tuple(2, 1, c + v)); while (!pq.isEmpty()) { Tuple e = pq.remove(); if (e.a >= n) { min = Math.min(min, e.c); continue; } if (e.c >= min) { continue; } pq.add(new Tuple(2 * e.a, e.a, e.c + c + v)); pq.add(new Tuple(e.a + e.b, e.b, e.c + v)); } pr.println(min); } private static class Tuple implements Comparable { int a; // length int b; // clip int c; // cost Tuple(int a, int b, int c) { this.a = a; this.b = b; this.c = c; } @Override public int compareTo(Tuple o) { if (c == o.c) { return Integer.compare(a, o.a); } return Integer.compare(c, o.c); } @Override public int hashCode() { return Integer.hashCode(a); } @Override public String toString() { // [xxx, xxxx] StringBuilder stmp = new StringBuilder(32); stmp.append('['); stmp.append(a); stmp.append(','); stmp.append(' '); stmp.append(b); stmp.append(']'); return stmp.toString(); } } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } private static class Printer extends PrintWriter { Printer(PrintStream out) { super(out); } } }