#include <bits/stdc++.h>
using namespace std;
long long n, x, y, cnt;
string s;
int main() {
  cin >> n >> x >> y;
  getchar();
  getline(cin, s);
  for (int i = 0; i < n; i++) {
    if (s[i] == '1') continue;
    while (s[i] == '0') i++;
    cnt++;
  }
  if (!cnt) {
    cout << 0;
    return 0;
  }
  cout << (x * (cnt - 1) + y > cnt * y ? cnt * y : x * (cnt - 1) + y);
  return 0;
}
