#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  string str;
  cin >> n >> x >> y;
  cin >> str;
  long long cnt = 0;
  for (long long i = 0; i < n; i++)
    if (str[i] == '0' && str[i + 1] == '1') cnt++;
  if (str[n - 1] == '0') cnt++;
  long long minn;
  if (x < y)
    minn = x * (cnt - 1) + y;
  else
    minn = y * cnt;
  if (cnt == 0) minn = 0;
  cout << minn << endl;
  return 0;
}
