#include #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; void solve() { int a, b; bool c = false; rep(i, 0, 3) { cin >> a >> b; if (a & 1) c = !c; } cout << ((c) ? ":-(" : ":-)") << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); }