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