#include <bits/stdc++.h>
using namespace std;
int const N = 300300;
char s[N];
int main() {
  int n;
  long long x, y;
  scanf("%d %I64d %I64d", &n, &x, &y);
  scanf(" %s", s);
  long long k = 0;
  for (int i = 0; i < (n); ++i) {
    if (s[i] == '0' && (i == 0 || s[i - 1] == '1')) {
      ++k;
    }
  }
  long long ans;
  if (k == 0) {
    ans = 0;
  } else if (x < y) {
    ans = (k - 1) * x + y;
  } else {
    ans = k * y;
  }
  printf("%I64d\n", ans);
  return 0;
}
