#include #include #include #include #include #include #include using namespace std; using uint = unsigned int; using ll = long long; #define CIN( LL , A ) LL A; cin >> A #define GETLINE( A ) string A; getline( cin , A ) #define FOR_ITR( ARRAY , ITR , END ) for( auto ITR = ARRAY .begin() , END = ARRAY .end() ; ITR != END ; ITR ++ ) int main() { ll A; ll B; ll num = 0; for( ll i = 0 ; i < 3 ; i++ ){ cin >> A; cin >> B; num += A; } const string answer = ( num % 2 == 0 ? ":-)" : ":-("); cout << answer << endl; return 0; }