#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, x, y, cnt = 0, sum = 0, z = 0, ans = 1000000000000000000;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  if (s.at(0) == '0') {
    cnt++;
  }
  for (long long int i = 1; i < n; i++) {
    if (s.at(i) == '0' && s.at(i - 1) == '1') {
      cnt++;
    }
  }
  ans = cnt * y;
  z = cnt;
  while (z > 0) {
    sum = (cnt - z) * x + z * y;
    if (sum < ans) {
      ans = sum;
    }
    z--;
  }
  cout << ans;
  return 0;
}
