#include #include #include using namespace std; int main() { ios_base::sync_with_stdio(false); vector symbols = { ":::" ":o:" ":::", ":o:" ":::" ":o:", ":::" "o:o" ":::", "o::" ":o:" "::o", "::o" ":o:" "o::", "o:o" ":::" "o:o", "o:o" ":o:" "o:o", "ooo" ":::" "ooo", "o:o" "o:o" "o:o", }; vector nums = { 1, 2, 2, 3, 3, 4, 5, 6, 6 }; string l_1, l_2, l_3; while (getline(cin, l_1)) { getline(cin, l_2); getline(cin, l_3); string val(l_1 + l_2 + l_3); bool found = false; for (int i = 0; i < symbols.size(); ++i) { if (val == symbols[i]) { found = true; cout << nums[i] << endl; } } if (!found) cout << "unknown" << endl; } return 0; }