#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, re, ro, eo, d = 0;
  cin >> n >> ro >> re >> eo;
  if (n == 1)
    d = 0;
  else {
    if (re <= ro) {
      if (re <= eo)
        d = (n - 1) * re;
      else
        d = (n - 2) * eo + re;
    } else {
      if (ro <= eo)
        d = (n - 1) * ro;
      else
        d = (n - 2) * eo + ro;
    }
  }
  cout << d;
  return 0;
}
