a = [int(x) for x in input().split()] print(":-)" if (a[0] + a[2] + a[4]) % 2 == 0 else ":-(")