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