#include #define rep(i,a,b) for (int (i)=(a);(i)<(b);++(i)) #define sz(x) (x).size() using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair P; const int INF = 1e9; const ll LINF = 1LL<<60; const ll MOD = 1e9+7; int A[3],B[3]; int main() { rep(i,0,3) cin >>A[i]>>B[i]; int a = 0; rep(i,0,3) { if (A[i]%2 == 1) ++a; } if (a == 1 || a == 3) cout << ":-(" << '\n'; else cout << ":-)" << '\n'; return 0; }