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