#include <bits/stdc++.h>
using namespace std;
const int maxN = 3e5 + 7;
char s[maxN];
int main() {
  long long n, x, y;
  cin >> n >> x >> y;
  cin >> s + 1;
  s[0] = '1';
  long long cnt = 0;
  for (int i = 1; i <= n; i++)
    if (s[i - 1] == '1' && s[i] == '0') cnt++;
  if (cnt == 0)
    puts("0");
  else if (x < y)
    cout << (cnt - 1) * x + y << endl;
  else
    cout << cnt * y << endl;
  return 0;
}
