#include #include #include #include #include #include #define ll long long using namespace std; int main() { ll a,b,c,d,e,f,ans; cin>>a>>b>>c>>d>>e>>f; ans=pow(a,b)+pow(c,d)+pow(e,f); if(ans%2==0) cout<<":-)"<