#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,sse3,sse4,popcnt,abm,mmx")
using namespace std;
const long long INF = 2e9 + 13;
const int MOD = 1e9 + 7;
int N;
long long x, y;
vector<int> comp;
long long dp[300005];
long long calc(int len) {
  if (len < 0) return 0;
  if (dp[len] != -1) return dp[len];
  if (len == 1) return dp[len] = y;
  long long ret = 1e18;
  ret = min(ret, y + calc(len - 2));
  ret = min(ret, x + calc(len - 2));
  return dp[len] = ret;
}
int main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> N >> x >> y;
  for (int i = 0; i < 300005; i++) dp[i] = -1;
  for (int i = 0; i < N; i++) {
    char v;
    cin >> v;
    if (comp.empty() || (comp.back() != (v - '0'))) comp.push_back(v - '0');
  }
  if (comp.size() == 1)
    if (comp[0] == 1) {
      cout << 0 << endl;
      return 0;
    }
  int len = comp.size();
  if (comp[0] == 1) len--;
  if (comp.back() == 1) len--;
  cout << calc(len) << endl;
}
