#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, c;
  cin >> n >> a >> b >> c;
  if (n == 1) {
    cout << 0 << endl;
    return 0;
  }
  n -= 1;
  int h = min(a, min(b, c));
  int d = min(a, b);
  int soma = 0;
  if (d == h)
    cout << n * (d) << endl;
  else
    n -= 1, soma += d, soma += h * n, cout << soma << endl;
}
