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