#include <bits/stdc++.h>
using namespace std;
char str[300005];
int main() {
  long long int n, x, y;
  while (scanf("%lld %lld %lld", &n, &x, &y) != EOF) {
    getchar();
    for (int k = 0; k < n; k++) scanf("%c", &str[k]);
    int tag = 1;
    long long int cou = 0;
    for (long long int k = 0; k < n; k++) {
      if (str[k] == '0') {
        if (tag == 1) cou++;
        tag = 0;
      } else
        tag = 1;
    }
    if (cou == 0) {
      printf("0\n");
      continue;
    }
    if (x >= y) {
      long long int sum = cou * y;
      printf("%lld\n", sum);
    } else {
      long long int sum = (cou - 1) * x + y;
      printf("%lld\n", sum);
    }
  }
  return 0;
}
