#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using vi = vector<int>;
ll solve(const string& t, ll a, ll b) {
  int m = t.size();
  int zeros = (m + 1) / 2;
  assert(m % 2 == 1);
  for (int i = 0; i < m; ++i) {
    assert(t[i] == ('0' + i % 2));
  }
  return min((zeros - 1) * a + b, zeros * b);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, a, b;
  cin >> n >> a >> b;
  string s;
  cin >> s;
  string t;
  for (char c : s) {
    if (t.empty() or t.back() != c) {
      t.push_back(c);
    }
  }
  if (t.size() <= 2) {
    if (t == "1") {
      cout << 0 << endl;
    } else {
      cout << b << endl;
    }
    return 0;
  }
  if (t.back() == '1') {
    t.pop_back();
  }
  if (t[0] == '1') {
    t = t.substr(1);
  }
  cout << solve(t, a, b) << '\n';
  return 0;
}
