#include <bits/stdc++.h>
using namespace std;
long long n;
long long a, b, c;
int main() {
  scanf("%I64d", &n);
  scanf("%I64d %I64d %I64d", &a, &b, &c);
  if (n == 1) {
    printf("0\n");
    return 0;
  }
  long long len, ans;
  len = min(a, min(b, c));
  if (len == a || len == b) {
    ans = len * (n - 1);
  } else {
    ans = min(a, b) + (n - 2) * len;
  }
  printf("%I64d\n", ans);
  return 0;
}
