#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main(void) { cin.tie(0); ios::sync_with_stdio(false); string R, G, B; cin >> R >> G >> B; int r = 16; int g = 16; int b = 16; if ((R.length() % 2) != 0) { int k = (R.length() / 2) + 1; r = (16 - k); } if ((G.length() % 2) != 0) { int k = (G.length() / 2) + 1; g = (16 - k); } if ((B.length() % 2) != 0) { int k = (B.length() / 2) + 1; b = (16 - k); } cout << r * r * g * g * b * b << '\n'; return 0; }