#include using namespace std; int main() { int A[3], B[3]; for (int i = 0; i < 3; i++) { cin >> A[i] >> B[i]; } int a = 0; for (int i = 0; i < 3; i++) { if (A[i] & 1) ++a; } if (a == 1 || a == 3) cout << ":-(" << endl; else cout << ":-)" << endl; return 0; }