AB = list(map(int,input().split())) tp = AB[0]%2 + AB[2]%2 + AB[4]%2 print(":-)" if tp%2==0 else ":-(")