#include <bits/stdc++.h>
using namespace std;
long long n, x, y;
long long c;
string s;
long long ans = 1e16;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> x >> y;
  cin >> s;
  s = "1" + s;
  for (long long i = 1; i <= n; i++)
    if (s[i] == '0' and s[i - 1] == '1') c++;
  for (long long i = 0; i < c; i++) ans = min(ans, i * x + (c - i) * y);
  if (c == 0) ans = 0;
  cout << ans << endl;
  return 0;
}
