#include using namespace std; typedef long long ll; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b>N; ll now=0; vector S={168, 150, 135, 126, 112, 101, 90}; //for(int i=0;i<7;i++) S[i]=N/S[i]; vector A(N); vector ord(N); vector> B(N); for(int i=0;i>x; now+=x; A[i]=now; B[i]=mp(now,i); //cout< mi=mp(INF,-1); for(int t=0;t<7;t++){ ll gosa=0; for(int i=0;i