#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, a, b, c;
  cin >> n >> a >> b >> c;
  if (n == 1) {
    cout << 0 << '\n';
  } else if (n == 2) {
    cout << min(a, b) << '\n';
  } else {
    int d = min(a, min(b, c));
    if (d == a || d == b) {
      cout << (n - 1) * d << '\n';
    } else {
      cout << (n - 2) * d + min(a, b) << '\n';
    }
  }
  return 0;
}
