#include using namespace std; typedef unsigned long long ull; typedef long long ll; int main(){ int t=0; for(int i=0; i<3; i++){ ll a, b; cin >> a >> b; t+=a%10; } if(t%2==0) cout << ":-)" << endl; else cout << ":-(" << endl; return 0; }