#include <bits/stdc++.h>
using namespace std;
int n, z, a, b;
char x;
bool flag;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> a >> b;
  for (int i = 0; i < n; ++i) {
    cin >> x;
    if (x == '0') {
      if (flag) continue;
      ++z;
      flag = true;
    } else
      flag = false;
  }
  cout << (z == 0 ? 0 : min((long long)(z - 1) * a + b, (long long)b * z));
  return 0;
}
