#include <bits/stdc++.h>
int n, x, y;
long long ans;
char s[300010];
int main() {
  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) {
    if (x >= y)
      ans = cnt * 1ll * y;
    else
      ans = (cnt - 1) * 1ll * x + y;
  }
  printf("%lld\n", ans);
}
