#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using llu = long long unsigned;
using ld = long double;
const int inf = 0x3c3c3c3c;
const ll infl = 0x3c3c3c3c3c3c3c3c;
int n, x, y;
string s;
int main() {
  cin.tie(NULL);
  cin.sync_with_stdio(false);
  cout.sync_with_stdio(false);
  cin >> n >> x >> y >> s;
  int oc = 0, zc = 0;
  if (s[0] == '0') zc++;
  for (int i = 1; i < n; i++) {
    if (s[i - 1] == '0' && s[i] == '1') oc++;
    if (s[i - 1] == '1' && s[i] == '0') zc++;
  }
  ll ans = min(1LL * (oc - (s[n - 1] == '1')) * x + y, 1LL * zc * y);
  ans = max(ans, 0LL);
  printf("%lld", ans);
  return 0;
}
