#include <bits/stdc++.h>
using namespace std;
int n, x, y;
char str[330000];
int main() {
  scanf("%d%d%d", &n, &x, &y);
  scanf("%s", str);
  int i, j, s, p, q, cont = 0;
  for (i = 0; i < n; i++) {
    if (str[i] == '0' && (i == 0 || str[i - 1] == '1')) cont++;
  }
  if (cont == 0)
    puts("0");
  else
    printf("%lld\n", 1LL * (cont - 1) * (min(x, y)) + y);
  return 0;
}
