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