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