#include #include #include #include using namespace std; #define PB push_back typedef long long LL; typedef vector VI; typedef vector VLL; int main() { vector t(140000); int d,b,i,j; LL s,m,g,mm,w; scanf("%d",&d); for(i=0;imm) mm=w; for(j=i+1;jmm) mm=w; } } printf("%lld",mm); }