#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, a, b, c;
  cin >> n >> a >> b >> c;
  if (n == 1)
    cout << 0;
  else if (a <= b && a <= c)
    cout << (n - 1) * a;
  else if (b <= a && b <= c)
    cout << (n - 1) * b;
  else
    cout << min(a, b) + (n - 2) * c;
}
