#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>a>>b>>c; Int x=(a=="NONE"?0:(a.size()+1)/2); Int y=(b=="NONE"?0:(b.size()+1)/2); Int z=(c=="NONE"?0:(c.size()+1)/2); cout<<(16-x)*(16-x)*(16-y)*(16-y)*(16-z)*(16-z)<