#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1e9 + 7;
int32_t main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long t;
  t = 1;
  for (long long tc = 0; tc < t; tc++) {
    long long n, x, y;
    cin >> n >> x >> y;
    string str;
    cin >> str;
    vector<long long> v;
    v.push_back(-1);
    for (long long i = 0; i < n; i++) {
      if (str[i] == '1') v.push_back(i);
    }
    v.push_back(n);
    long long cntz = 0;
    for (long long i = 1; i < v.size(); i++) {
      cntz += (v[i] - 1 - (v[i - 1] + 1) + 1 > 0);
    }
    if (cntz == 0) {
      cout << 0 << "\n";
      continue;
    }
    if (x < y) {
      long long s = -1, e = n;
      long long i = 0;
      while (i < n && str[i] == '1') i++;
      s = i - 1;
      i = n - 1;
      while (i >= 0 && str[i] == '1') i--;
      e = i + 1;
      long long cnt1 = 0;
      for (long long i = s + 1; i < e;) {
        if (str[i] == '1') {
          long long j = i;
          while (j < e && str[j] == '1') j++;
          i = j;
          cnt1++;
        } else {
          i++;
        }
      }
      long long ans = cnt1 * x + y;
      ans = min(ans, cntz * y);
      cout << ans << "\n";
    } else {
      long long ans = cntz * y;
      cout << ans << "\n";
    }
  }
  return 0;
}
