intmain() { cin >> n >> p >> q >> r; for (int i = 0; i < n; i ++) cin >> a[i], sum += a[i]; if (sum >= 0) cout << 0 << '\n', exit(0); ans = -sum * p; sort(a, a + n); for (int i = 0; i < n; i ++) pre[i] = pre[i - 1] + a[i]; for (int i = 0; i < n - 1; i ++) ans = min(ans, (i + 1) * q + max(0LL, pre[i] - sum) * p); cout << ans << '\n'; return0; }