#include<bits/stdc++.h>
using namespace std;
typedef long long ll;

signed main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout << fixed << setprecision(20);
 
    int a[3],b[3];
    int odd=0;
    for(int i=0;i<3;i++){
        cin>>a[i]>>b[i];
        if(a[i]%2) odd++;
    }
    if(odd%2==0){
        cout << ":-)" << endl;
    }
    else cout << ":-(\n";

}