#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, n;
  cin >> n >> a >> b >> c;
  int z = min(min(a, b), c);
  if (n == 1) {
    printf("0\n");
  } else {
    if (z == a || z == b) {
      int res = (n - 1) * z;
      printf("%d\n", res);
    } else {
      int res = (n - 2) * c;
      res += min(a, b);
      printf("%d\n", res);
    }
  }
  return 0;
}
