let t = readLine()!.split(separator: " ").map{Int($0)!} var o = 0 for i in [0,2,4]{ o += t[i] % 2 == 0 ? 0 : 1 } print(o % 2 == 0 ? ":-)" : ":-(")