#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int64_t n, x, y;
  string s;
  cin >> n >> x >> y >> s;
  s = "1" + s + "1";
  regex e("10");
  int zero =
      distance(sregex_iterator(s.begin(), s.end(), e), sregex_iterator());
  if (zero)
    cout << min(x, y) * (zero - 1) + y << endl;
  else
    cout << "0\n";
  return 0;
}
