#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, x, y;
  cin >> n >> x >> y;
  string second;
  cin >> second;
  long long val = 0;
  for (int i = 0; i < n; i++) {
    if (second[i] == '0') {
      val++;
      while (i < n && second[i] == '0') i++;
      i--;
    }
  }
  if (val == 0) {
    cout << "0\n";
    return;
  }
  long long ans = y;
  val--;
  cout << ans + val * min(x, y) << "\n";
  return;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
}
