#include #define rep(i, n) for (int i = 0; i < n; ++i) using ll = long long; using namespace std; const int INF = 1e9; int main() { int A[6],cnt=0; rep(i, 6) cin >> A[i]; for (int i = 0; i < 6;i+=2){ if(A[i]%2==1) cnt++; } cnt % 2 == 0 ? cout << ":-)" : cout << ":-("; cout << endl; return 0; }