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