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