#include #define PI 3.14159265359 using namespace std; int main() { string R, G, B; getline(cin, R); getline(cin, G); getline(cin, B); int r = R.size(), g = G.size(), b = B.size(); r = (r + 1) / 2; g = (g + 1) / 2; b = (b + 1) / 2; if (R == "NONE") r = 0; if (G == "NONE") g = 0; if (B == "NONE") b = 0; int64_t a = (16 - r) * (16 - g) * (16 - b); a *= a; cout << a << endl; }