#include using namespace std; #define REP(i,a) for(int i = 0; i < (a); i++) #define ALL(a) (a).begin(),(a).end() typedef long long ll; typedef pair P; const int INF = 1e9; const int MOD = 1e9 + 7; signed main(){ int a[3],b[3]; REP(i,3){ cin >> a[i] >> b[i]; } int cnt = 0; REP(i,3){ if(a[i] % 2 == 0){ cnt++; } } if(cnt == 1 || cnt == 3){ cout << ":-)" << endl; }else{ cout << ":-(" << endl; } }