#define _USE_MATH_DEFINES #include //cin, cout #include //vector #include //sort,min,max,count #include //string,getline, to_string #include //abs(int) #include //swap, pair #include //deque #include //INT_MAX #include //bitset #include //sqrt, ceil. M_PI, pow, sin #include //fixed #include //setprecision #include //stringstream #include //gcd, assumlate #include //randam_device #include //numeric_limits using namespace std; constexpr long long int D_MOD = 1000000007; int main() { int n1 = 0, n2 = 0, n3 = 0; int A, B; cin >> A >> B; if (A % 2 == 1 || B == 0) { n1 = 1; } cin >> A >> B; if (A % 2 == 1 || B == 0) { n2 = 1; } cin >> A >> B; if (A % 2 == 1 || B == 0) { n3 = 1; } if ((n1 + n2 + n3) % 2 == 0) { cout << ":-)" << endl; } else { cout << ":-(" << endl; } return 0; }