#include <bits/stdc++.h>
using namespace std;
vector<char> v;
int main() {
  long long a, b, c;
  cin >> a >> b >> c;
  string x;
  cin >> x;
  bool f = true;
  for (int i = 0; i < a; i++) {
    if (x[i] == '0') f = false;
  }
  long long k = 0;
  long long n = 0;
  if (f) {
    cout << 0 << endl;
    exit(0);
  }
  for (int i = 1; i < a; i++) {
    if (x[i - 1] == '1' && x[i] == '0') k++;
  }
  if (x[0] == '1') k--;
  cout << min(k * b + c, (k + 1) * c) << endl;
}
