#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[3];
  cin >> n >> a[0] >> a[1] >> a[2];
  if (n == 1) {
    cout << 0 << "\n";
    return 0;
  }
  int minadj = min(a[0], a[1]);
  int minest = min(minadj, a[2]);
  cout << minadj + (n - 2) * minest << "\n";
  return 0;
}
