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