#include #define rep(i,n) for(int i=0;i ; const ll INF = 10000000000; const int MOD = 1000000007; int main(){ vector a(6); rep(i,6) cin >> a[i]; if((a[0]+a[2]+a[4])%2 == 0) cout << ":-)" << endl; else cout << ":-(" << endl; return 0; }