#include <bits/stdc++.h>
using namespace std;
string ss, tt, s1, s2;
char q, w;
long long n, x, y, a, b, c, d, m, res, cnt, tmp, t;
int main() {
  scanf("%lld", &n);
  scanf("%lld%lld%lld", &a, &b, &c);
  if (n == 1) {
    puts("0");
  } else {
    d = min(a, b);
    n--;
    res += d;
    d = min({a, b, c});
    res += d * (n - 1);
    printf("%lld\n", res);
  }
  return 0;
}
