#include #include #include using namespace std; int main(){ int key,A,B; for(int i=0;i<3;i++){ cin >> A >> B; key += A^B; } if(key%2==0)cout << ":-)" << endl; else cout << ":-(" << endl; }