#include #include #include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll ans = 1; for(int i = 0;i<3;i++){ string s; cin>>s; if(s=="NONE"){ ans *= 256; continue; } int n = s.size(); int p = (n+1) / 2; int can = 16 - p; ans *= can * can; } cout<