#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("unroll-loops")
using namespace std;
const long long MAXN = 1e5 + 7;
void check() {
  long long n, a, b;
  cin >> n >> a >> b;
  string s;
  cin >> s;
  long long O = 0;
  for (long long i = 0; i < n; i++) {
    if (s[i] == '0') {
      O++;
      while (i < n && s[i] == '0') i++;
    }
  }
  if (!O)
    cout << 0 << '\n';
  else
    cout << (O - 1) * min(a, b) + b << '\n';
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  for (int i = 1; i <= t; i++) {
    check();
  }
  return 0;
}
