#include <bits/stdc++.h>
using namespace std;
using lli = long long int;
using pii = pair<int, int>;
using vi = vector<int>;
using vb = vector<bool>;
using vvi = vector<vector<int>>;
using vlli = vector<long long int>;
using vpii = vector<pair<int, int>>;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int a, b, c;
  cin >> a >> b >> c;
  int ans = 0;
  if (n == 2) {
    ans += min(a, b);
  } else if (n == 3) {
    ans += min(a, b);
    ans += min(a, min(b, c));
  } else if (n > 3) {
    ans += min(a, b);
    ans += min(a, min(b, c));
    ans += (n - 3) * min(a, min(b, c));
  }
  cout << ans;
  return 0;
}
