#include #include using namespace std; int main() { string firstLine,secondLine,thirdLine; string one,two,two2,three,three2,four,five,six,six2; string input; one="::::o::::"; two="::o:::o::"; two2="o:::::::o"; three="::o:o:o::"; three2="o:::o:::o"; four="o:o:::o:o"; five="o:o:o:o:o"; six="o:oo:oo:o"; six2="ooo:::ooo"; cin >> firstLine; cin >> secondLine; cin >> thirdLine; input=firstLine+secondLine+thirdLine; if(input==one) { cout << "1\n"; } else if((input==two)||(input==two2)) { cout << "2\n"; } else if((input==three)||(input==three2)) { cout << "3\n"; } else if(input==four) { cout << "4\n"; } else if(input==five) { cout << "5\n"; } else if((input==six)||(input==six2)) { cout << "6\n"; } else { cout << "unknown\n"; } return 0; }