#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, c, d, e;
  cin >> n;
  cin >> a >> b >> c;
  d = min(a, b);
  e = min(d, c);
  if (n == 1)
    cout << "0" << endl;
  else if (c == e)
    cout << d + (n - 2) * e << endl;
  else
    cout << (n - 1) * e << endl;
  return 0;
}
