#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int MAXN = 1000005;
int a, b, c, n, ans;
int main() {
  cin >> n >> a >> b >> c;
  int mi = min(min(a, b), c);
  n--;
  if (n > 0) {
    n--;
    ans += min(a, b);
  }
  while (n) {
    ans += mi;
    n--;
  }
  printf("%d\n", ans);
  return 0;
}
