#include <bits/stdc++.h>
using namespace std;
template <typename T>
void out(T x) {
  cout << x << endl;
  exit(0);
}
const int maxn = 1e6 + 5;
int n, a, b, c;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> a >> b >> c;
  if (n == 1) out(0);
  int x = min(a, min(b, c));
  if (a == x) out((n - 1) * a);
  if (b == x) out((n - 1) * b);
  out(min(a, b) + (n - 2) * c);
  return 0;
}
