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