#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, x, y;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  long long ans = 0, i;
  int cnt = 1;
  for (i = 0; i < n; i++) {
    if (cnt == 0 && s[i] == '0') {
      continue;
    } else if (cnt == 1 && s[i] == '1') {
      continue;
    } else if (cnt == 1 && s[i] == '0') {
      ans++;
      cnt = 0;
    } else if (cnt == 0 && s[i] == '1') {
      cnt = 1;
    }
  }
  if (ans == 0) {
    cout << "0" << endl;
    return 0;
  }
  cout << min(ans * y, ((ans - 1) * x) + y) << endl;
}
