#include <bits/stdc++.h>
const int inf = 0x3f3f3f3f;
const long long INF = 0x3f3f3f3f3f3f3f3f;
const double eps = 1e-8;
using namespace std;
const int maxn = 1000 + 10;
int main() {
  int n, a, b, c;
  cin >> n >> a >> b >> c;
  if (n == 1) {
    puts("0");
    return 0;
  }
  n--;
  int sum = 0;
  int minn = min(a, min(b, c));
  int flag;
  if (a == minn)
    flag = 1;
  else if (b == minn)
    flag = 2;
  else
    flag = 3;
  if (flag <= 2)
    sum += n * minn;
  else {
    sum += min(a, b);
    n--;
    sum += n * minn;
  }
  cout << sum << endl;
  return 0;
}
