#include <bits/stdc++.h>
using namespace std;
int test[4] = {1, 5, 10, 50};
void speedUp() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}
void doit() {
  long long int i, j, k, n, m, rv, rp, ans = 0;
  string s;
  cin >> n >> rv >> rp;
  cin >> s;
  i = 0;
  while (i < n) {
    if (s[i] == '0') {
      while (s[i] == '0') i++;
      ans++;
    } else
      i++;
  }
  if (ans == 0)
    cout << 0;
  else
    cout << min((ans - 1) * rv + rp, ans * rp);
}
int main() {
  speedUp();
  doit();
  return 0;
}
