#include<iostream> #include<string> #include<queue> #include<algorithm> #include<map> #include<set> #include<vector> #include<math.h> using namespace std; #define INF 1000000007 #define LINF (1LL << 62) typedef long long i64; typedef pair<i64,i64> P; int a,b,c,d,e,f; int main(){ cin >> a >> b >> c >> d >> e >> f; if((a & 1) ^ (c & 1) ^ (e & 1)) cout << ":-(" << endl; else cout << ":-)" << endl; return 0; }