#include <bits/stdc++.h>
using namespace std;
int n, x, y;
int arr[300005];
int main() {
  scanf("%d%d%d", &n, &x, &y);
  int cnt = 0;
  long long c = 0;
  for (int i = 0; i < n; i++) {
    scanf("%1d", &arr[i]);
    if (!arr[i])
      cnt++;
    else {
      if (cnt) c++;
      cnt = 0;
    }
  }
  if (cnt) c++;
  if (c == 0) return !printf("0\n");
  printf("%lld\n", min(c * y, (c - 1) * x + y));
  return 0;
}
