#include using namespace std; int main(){ int a[6]; double b,c,d; for(int i=0;i<6;i++){ cin >> a[i]; } b = pow(a[0],a[1]); c = pow(a[2],a[3]); d = pow(a[4],a[5]); if((long long int)(b+c+d)%2==0){ cout << ":-)"<