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