#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using K = long double;
const long long linf = 1e18;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n, x, y;
  cin >> n >> x >> y;
  string s;
  cin >> s;
  int cnt = 0;
  for (int i = 0; i < n; ++i) {
    if (s[i] == '1') continue;
    int j = i;
    while (j < n && s[i] == s[j]) {
      ++j;
    }
    ++cnt;
    i = j - 1;
  }
  long long result = linf;
  for (int i = 0; i < cnt; ++i) {
    result = min(result, 1LL * x * i + 1LL * y * (cnt - i));
  }
  if (result == linf) result = 0;
  cout << result << '\n';
}
