#include using namespace std; int main() { int a1, b1, a2, b2, a3, b3; cin >> a1 >> b1 >> a2 >> b2 >> a3 >> b3; int odd = (a1%2 != 0) + (a2%2 != 0) + (a3%2 != 0); if (odd != 1 && odd != 3) { puts(":-)"); } else { puts(":-("); } return 0; }