#include #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define all(x) (x).begin(),(x).end() #define rall(x) (x).rbegin(),(x).rend() #define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() ); using namespace std; using ll = long long; int main(){ ll a, b; ll sum = 0; rep(i, 3){ cin >> a >> b; sum += pow(a, b); } if(sum%2 == 0) cout << ":-)" << endl; else cout << ":-(" << endl; }