#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = double;
using pll = pair<ll, ll>;
using vll = vector<ll>;
using vpll = vector<pll>;
using vvll = vector<vll>;
int main() {
  ios::sync_with_stdio(0);
  cout.tie(0);
  cin.tie(0);
  ll n, x, y;
  string s;
  cin >> n >> x >> y >> s;
  ll one = 0;
  ll zero = 0;
  bool inZero = false;
  bool inOne = false;
  for (int i = 0; i < n; ++i) {
    if (!inZero && s[i] == '0') {
      inZero = true;
      zero++;
    } else if (s[i] == '1')
      inZero = false;
    if (!inOne && s[i] == '1') {
      inOne = true;
      one++;
    } else if (s[i] == '0')
      inOne = false;
  }
  cout << min(max(0LL, (zero - 1)) * x + y, zero * y) << endl;
  return 0;
}
