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