#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, j, k, l, m, n, x, y, z;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  for (i = 0; i < n; i++) {
    if (s[i] == '0') break;
  }
  if (i == n) return cout << 0 << endl, 0;
  for (j = s.size() - 1; j >= 0; j--)
    if (s[j] == '0') break;
  s = s.substr(i, j - i + 1);
  long long int cnt = 0;
  for (i = 1; i < s.size(); i++) {
    if (s[i] == '0' && s[i - 1] == '1') cnt++;
  }
  cnt++;
  cout << (cnt - 1) * min(x, y) + y << endl;
  return 0;
}
