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