func_code_string: #include <bits/stdc++.h>   using namespace std;   int n, b, i, rez, a[2013], minn[2013], maxx[2013];   int main() {     minn[0] = 123456890;     cin >> n >> b;     for (i = 1; i <= n; ++i) {       cin >> a[i];       minn[i] = min(minn[i - 1], a[i]);     }     for (i = n; i >= 1; --i) {       maxx[i] = max(maxx[i + 1], a[i]);     }     for (i = 1; i <= n; ++i) {       rez = max(rez, b / minn[i] * maxx[i] + b % minn[i]);     }     cout << rez;     return 0;   }   