#include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int n[6]; bool judge; for(int i = 0; i < 6; i++) { cin >> n[i]; if((n[0] + n[2] + n[4]) % 2 == 0) { judge = true; }else { judge = false; } } if(judge) { cout << ":-)" << endl; }else { cout << ":-(" << endl; } }