#include <bits/stdc++.h>
const int md = 1e9 + 7, inf = 1e9 + 7;
const long long hs = 199;
const long double eps = 1e-9, pi = acos(-1);
using namespace std;
long long n, x, y;
string s;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n >> x >> y;
  cin >> s;
  long long c = 0;
  for (int i = 1; i < n; i++) {
    if (s[i - 1] == '0' && s[i] == '1') c++;
  }
  if (s.back() == '0') c++;
  if (c == 0) return cout << 0 << '\n', 0;
  cout << min(c * y, (c - 1) * x + y) << '\n';
}
