#include using namespace std; int main() { int a[3], b[3]; bool o = false; for (int i = 0; i < 3; i++) { cin >> a[i] >> b[i]; o ^= a[i] & 1; } cout << (o ? ":-(" : ":-)") << endl; return 0; }