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