#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast", "unroll-loops")
const int MAXN = 1e5 * 2;
int f(int x) { return -x - 1; }
int main() {
  ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  int n, a, b, t = 0;
  cin >> n >> a >> b;
  string s = "t";
  for (int i = 1; i <= n; i++) {
    char ch;
    cin >> ch;
    if (ch == '0' && s.back() != '0') t++;
    s += ch;
  }
  if (t == 0) {
    cout << 0;
    return 0;
  }
  t--;
  42;
  cout << 0LL + b + (1LL * min(a, b) * t);
}
