#include <bits/stdc++.h>
using namespace std;
char s[310000];
int main() {
  int n, x, y;
  scanf("%d%d%d", &n, &x, &y);
  scanf("%s", s + 1);
  s[0] = '1';
  int cnt = 0;
  for (int i = 1; i <= n; ++i)
    if (s[i] == '0' && s[i] != s[i - 1]) ++cnt;
  long long ans = 1LL * y * cnt;
  ans = min(ans, 1LL * (cnt - (cnt > 0)) * x + 1LL * y * (cnt > 0));
  ans = min(ans, 1LL * (cnt - (cnt > 0)) * x + 1LL * y * (cnt > 0));
  s[0] = '0';
  cnt = 0;
  for (int i = 1; i <= n; ++i)
    if (s[i] == '1' && s[i] != s[i - 1]) ++cnt;
  ans = min(ans, 1LL * y * cnt + y);
  ans = min(ans, 1LL * (cnt - (cnt > 0)) * x + 1LL * y * (cnt > 0) + y);
  ans = min(ans, 1LL * (cnt - (cnt > 0)) * x + 1LL * y * (cnt > 0) + y);
  printf("%lld", ans);
  return 0;
}
