l = [int(i) for i in input().split()] a = l[0]%2 b = l[2]%2 c = l[4]%2 flag = (a+b+c)%2 == 0 if flag: print(':-)') else: print(':-(')