#include #define rep(i, n) for (int i = 0; i < (n); i++) #define repr(i, n) for (int i = (n) - 1; i >= 0; i--) #define range(a) a.begin(), a.end() using namespace std; using ll = long long; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int A[3], B[3]; rep(i, 3) cin >> A[i] >> B[i]; cout << ((A[0] + A[1] + A[2]) % 2 == 0 ? ":-)" : ":-(") << endl; }