import math import sys a1, b1, a2, b2, a3, b3 = (int(x) for x in input().split()) #s = int(pow(a1, b1) + pow(a2, b2)+pow(a3, b3)) #int s = a1**b1+a2**b2+a3**b3 s = a1 + a2 + a3 if s%2==0: print(":-)") else: print(":-(")