#include <bits/stdc++.h>
using namespace std;
long long n, x, y, i = 0, dist = 0, cnt = 0, ans1, ans2;
string str;
int main(void) {
  for (cin >> n >> x >> y >> str; i < n; i++)
    (str[i] == '0') ? dist++ : (cnt = cnt + 1 * (dist != 0), dist = 0);
  cnt = cnt + 1 * (dist != 0);
  ans1 = cnt * y;
  ans2 = max((cnt - 1) * x + y, (long long)0);
  cout << min(ans1, ans2);
  return 0;
}
