#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  uint_fast32_t n, x, y, zero_ranges = 0;
  cin >> n >> x >> y;
  uint_fast8_t state = 0;
  char s[n + 1];
  cin.read(s, n + 1);
  for (uint_fast32_t i = n; i > 0; --i) {
    auto new_state = s[i] == '0';
    zero_ranges += new_state && !state;
    state = new_state;
  }
  uint_fast64_t ans = 0;
  if (zero_ranges > 1) {
    ans += min<uint_fast64_t>(x, y) * (zero_ranges - 1);
    zero_ranges = 1;
  }
  ans += zero_ranges * y;
  cout << ans << "\n";
}
