#include <bits/stdc++.h>
const long long mod = 1000 * 1000 * 1000 + 7;
const long long mod1 = 998244353;
const long long INF = 1ll * 1000 * 1000 * 1000 * 1000 * 1000 * 1000 + 7;
using namespace std;
long long power(long long x, long long y) {
  long long res = 1;
  while (y > 0) {
    if (y & 1) res = (long long)(res * x);
    y = y >> 1;
    if (x <= 100000000) x = (long long)(x * x);
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  long long a, b, c;
  cin >> a >> b >> c;
  if (n == 1)
    cout << 0;
  else if (a <= b && a <= c) {
    long long ans = 0;
    n -= 1;
    ans += n * a;
    cout << ans;
  } else if (b <= a && b <= c) {
    long long ans = 0;
    n -= 1;
    ans += n * b;
    cout << ans;
  } else if (c <= a && c <= b) {
    long long ans = 0;
    n -= 1;
    ans += min(a, b);
    n -= 1;
    if (n == 0)
      cout << ans;
    else {
      ans += n * c;
      cout << ans;
    }
  }
  return 0;
}
