#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
mt19937 gen(chrono::high_resolution_clock::now().time_since_epoch().count());
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  long long n, x, y;
  string st;
  cin >> n >> x >> y >> st;
  vector<int> cnt;
  for (int i = 0, j = 0; i < n; i = j) {
    while (j < n && st[i] == st[j]) j++;
    cnt.push_back(j - i);
  }
  long long c1;
  if (st[0] == '0')
    c1 = (cnt.size() + 1) / 2;
  else
    c1 = cnt.size() / 2;
  if (c1 == 0)
    cout << 0;
  else
    cout << (c1 - 1) * min(x, y) + y;
  return 0;
}
