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