#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  scanf("%d%d%d", &(n), &(x), &(y));
  char a[n];
  scanf("%s", (a));
  int state = 1;
  int nb0 = 0;
  for (int i = 0; i < (n); ++i) {
    int tc = a[i] - '0';
    if (state != tc and tc == 1) {
      nb0 += 1;
    }
    state = tc;
  }
  if (!state) nb0++;
  long long res =
      (long long)y * min(1, nb0) + (long long)min(x, y) * max(0, nb0 - 1);
  printf("%I64d\n", res);
}
