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