#include <bits/stdc++.h>
using namespace std;
long long n, x, y, cgs;
char buf[300050];
int main() {
  scanf("%lld%lld%lld", &n, &x, &y);
  scanf("%s", buf);
  bool cxf = 0;
  for (int i = 0; i < n; i++) {
    if (buf[i] == '0' && !cxf) {
      cgs++;
      cxf = 1;
    } else if (buf[i] == '1') {
      cxf = 0;
    }
  }
  if (cgs == 0)
    printf("0\n");
  else
    printf("%lld\n", min(((cgs - 1) * x) + y, (cgs * y)));
}
