a=[*map(int,input().split())] a=a[::2] cnt=1 for i in a: cnt+=i if cnt%2==0: print(':-)') else: print(':-(')