#include "bits/stdc++.h" using namespace std; void solve() { int a, b; int f = 1; for (int i = 0; i < 3; i++) { cin >> a >> b; if (a & 1) f = 0; } cout << (f ? ":-)" : ":-(") << endl; } int main() { solve(); return 0; }