#include <bits/stdc++.h>
using namespace std;
const int N = 300002;
char ara[N];
int main() {
  int n = 0;
  long long x = 0ll;
  long long y = 0ll;
  scanf("%d %lld %lld\n %s\n", &n, &x, &y, ara);
  int l = strlen(ara);
  long long cnt = 0ll;
  for (int i = 0; i < l; ++i) {
    if (i == 0) {
      if (ara[i] == '0') ++cnt;
    } else {
      if (ara[i] == '0' && ara[i - 1] == '1') ++cnt;
    }
  }
  long long mn = 300000000000002ll;
  for (long long i = 0ll; i < cnt; ++i) {
    long long tmp = i * x + (cnt - i) * y;
    mn = min(mn, tmp);
  }
  if (cnt == 0ll) mn = 0ll;
  printf("%lld\n", mn);
  return 0;
}
