#include using namespace std; using Int = long long; const char newl = '\n'; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a void drop(const T &x){cout< vector read(size_t n){ vector ts(n); for(size_t i=0;i>ts[i]; return ts; } template struct FixPoint : F{ FixPoint(F&& f):F(forward(f)){} template decltype(auto) operator()(Args&&... args) const{ return F::operator()(*this,forward(args)...); } }; template inline decltype(auto) MFP(F&& f){ return FixPoint{forward(f)}; } //INSERT ABOVE HERE signed main(){ cin.tie(0); ios::sync_with_stdio(0); Int n,m; cin>>n>>m; auto as=read(n); const Int INF = 1e18; vector> dp(n); MFP([&](auto dfs,Int x,Int v)->Int{ if(x==n) return 0; if(dp[x].count(v)) return dp[x][v]; Int &res=dp[x][v]; res=-INF; // take all chmax(res,-dfs(x+1,as[x+1])+(v-m)); // remain r for(Int r:{1,4,6,8,9,10}) if(r0?"First":"Second")<