package main import ( "bufio" "os" "strconv" "strings" "fmt" "math" ) var sc = bufio.NewScanner(os.Stdin) func gets() string { sc.Scan() return sc.Text() } func toInt(value string) int64 { num, _ := strconv.ParseInt(value, 10, 64) return num } func splitWithInt(value string) []int64 { vals := strings.Split(value, " ") nums := make([]int64, len(vals)) for index, elem := range vals { nums[index] = toInt(elem) } return nums } func main() { var inputs []int64 var ans string inputs = splitWithInt(gets()) tapi := math.Pow(float64(inputs[0]), float64(inputs[1])) + math.Pow(float64(inputs[2]), float64(inputs[3])) + math.Pow(float64(inputs[4]), float64(inputs[5])) if math.Mod(tapi, 2.0) == 0 { ans = ":-)" } else { ans = ":-(" } fmt.Println(ans) }