#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long int n, x, y, cn = 0, ans = 0;
  string s;
  cin >> n >> x >> y >> s;
  for (int i = 0; i < n; i++) {
    if (s[i] == '0')
      cn++;
    else {
      if (cn) ans++;
      cn = 0;
    }
  }
  if (cn) ans++;
  if (!ans)
    cout << 0 << endl;
  else
    cout << (ans - 1) * min(x, y) + y << endl;
  return 0;
}
