#include <iostream>

using namespace std;

int main(void)
{
	int a, b, c, d, e, f;
	cin >> a >> b >> c >> d >> e >> f;
	if((a%2+c%2+e%2) % 2 == 0) cout << ":-)";
	else cout << ":-(";
	cout << endl;
	
	return 0;
}