#include <bits/stdc++.h>
using namespace std;
int N;
long long R, I;
string S;
vector<int> X;
long long solve() {
  X.clear();
  int cur = 0;
  for (int i = 0; i < (N); ++i) {
    char c = S[i];
    if (c == '1') {
      if (cur > 0) X.push_back(cur);
      cur = 0;
    } else {
      ++cur;
    }
  }
  if (cur) X.push_back(cur);
  int M = int((X).size());
  long long res = M * I;
  for (int i = 0; i < (M); ++i) {
    long long x = 1LL * (M - i) * I + 1LL * i * min(R, I);
    res = min(res, x);
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> N >> R >> I >> S;
  long long res = solve();
  for (int i = 0; i < (N); ++i) S[i] = (S[i] == '0' ? '1' : '0');
  res = min(res, solve() + I);
  cout << res << endl;
  return 0;
}
