#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long n;
  cin >> n;
  long long a, b, c;
  cin >> a >> b >> c;
  long long cnt = 0;
  if (n <= 1)
    cout << cnt << "\n";
  else {
    if (a < c && a < b) {
      cnt += (n - 1) * a;
    } else if (b < a && b < c) {
      cnt += (n - 1) * b;
    } else if (c < a && c < b) {
      if (a < b) {
        cnt += (a) + (n - 2) * c;
      } else {
        cnt += (b) + (n - 2) * c;
      }
    } else {
      cnt += (n - 1) * a;
    }
    cout << cnt << "\n";
  }
  return 0;
}
