#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const long long int INFL = 0x3f3f3f3f3f3f3f3f;
const double pi = atan(1.0) * 4.0;
const int N = 0;
int main(void) {
  ios_base::sync_with_stdio(false);
  int n, ans = 0, a, b, c;
  cin >> n;
  cin >> a >> b >> c;
  n--;
  if (n == 0) {
    cout << "0" << endl;
    return 0;
  }
  cout << min(a, b) + (n - 1) * min(a, min(b, c)) << endl;
  return 0;
}
