#include<bits/stdc++.h>
#define int long long
using namespace std;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }

signed main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);

    int a,x,b,y,c,z; cin>>a>>x>>b>>y>>c>>z;
    if((a+b+c)%2==0){
        cout<<":-)"<<endl;
    }else{
        cout<<":-("<<endl;
    }
    return 0;
}