#include #include using namespace std; int main ( void ) { array one = {":::",":o:",":::"}; array two_1 = {"o::",":::","::o"}; array two_2 = {"::o",":::", "o::"}; array three_1 = {"::o",":o:", "o::"}; array three_2 = {"o::",":o:","::o"}; array four = {"o:o",":::", "o:o"}; array five = {"o:o",":o:","o:o"}; array six_1 = {"o:o","o:o","o:o"}; array six_2 = {"ooo",":::","ooo"}; array input; for(int i = 0; i < 3; ++i) { cin >> input[i]; } if(one == input) { cout << "1" << endl; return 0; } else if(input == two_1 || input == two_2) { cout << "2" << endl; return 0; } else if(input == three_1 || input == three_2) { cout << "3" << endl; return 0; } else if(input == four) { cout << "4" << endl; return 0; } else if(input == five) { cout << "5" << endl; return 0; } else if(input == six_1 || input == six_2) { cout << "6" << endl; return 0; } else { cout << "unknown" << endl; return 0; } return 0; }