func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(0);     cin.tie(0);     cout.tie(0);     int n, p, q, r;     cin >> n >> p >> q >> r;     int a[n];     for (int i = 0; i < n; i++) {       cin >> a[i];     }     long long dp[n][3];     dp[0][0] = 1ll * p * a[0];     for (int i = 1; i < n; i++) {       dp[i][0] = max(dp[i - 1][0], 1ll * p * a[i]);     }     dp[0][1] = dp[0][0] + 1ll * q * a[0];     for (int i = 1; i < n; i++) {       dp[i][1] = max(dp[i - 1][1], dp[i][0] + 1ll * q * a[i]);     }     dp[0][2] = dp[0][1] + 1ll * r * a[0];     for (int i = 1; i < n; i++) {       dp[i][2] = max(dp[i - 1][2], dp[i][1] + 1ll * r * a[i]);     }     cout << dp[n - 1][2] <<   n ;   }   