#include using namespace std; using ll = long long; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> s; ll can_use; if(s=="NONE"){ can_use = 256; }else{ ll L = s.size(); ll cant = (L+1)/2; ll can = 16-cant; can_use = can*can; } ans *= can_use; } p(ans); return 0; }