a,b,c,d,e,f = list(map(int,input().split())) if (a + c + e) % 2 == 0: print(":-)") else: print(':-(')