#include <bits/stdc++.h>
int main() {
  long long n, x, y;
  scanf("%I64d %I64d %I64d", &n, &x, &y);
  char str[300010];
  scanf("%s", str);
  int len = strlen(str);
  int zc = 0;
  for (int i = 0; i < len; i++) {
    if (str[i] == '0' && (i == 0 || str[i - 1] == '1')) zc++;
  }
  if (zc == 0) {
    printf("0\n");
    return 0;
  }
  if (y <= x) {
    printf("%I64d\n", zc * y);
    return 0;
  }
  printf("%I64d\n", (zc - 1) * x + y);
  return 0;
}
