#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int inf = 2e9;
const int mod = 1e9 + 7;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.precision(12);
  cout << fixed;
  int n, x, y;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  if (s == string(n, '1')) {
    cout << 0;
    return 0;
  }
  s += '1';
  ++n;
  int k = 0;
  for (int i = 1; i < n; ++i)
    if (s[i] == '1' && s[i - 1] == '0') ++k;
  cout << min((ll)(k - 1) * x + y, (ll)k * y);
  return 0;
}
