#include <bits/stdc++.h>
using namespace std;
const long double pi = 2 * acos(0.0);
const long long prime = 31;
const long long inf = 1e10;
const long long mod = 1e18;
const long long maxn = 2e5 + 11;
const long long maxm = 1e6;
long long n, a, b, c, ans = inf;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n >> a >> b >> c;
  ans = a * (n - 1);
  ans = min(ans, b * (n - 1));
  ans = min(ans, a + c * (n - 2));
  ans = min(ans, b + c * (n - 2));
  cout << max(ans, 0ll);
  return 0;
}
