package main import . "fmt" import . "math/big" func main() { var a1,b1,a2,b2,a3,b3 int64 Scan(&a1,&b1,&a2,&b2,&a3,&b3) A1:=NewInt(a1) B1:=NewInt(b1) A2:=NewInt(a2) B2:=NewInt(b2) A3:=NewInt(a3) B3:=NewInt(b3) One:=NewInt(1) A1.Exp(A1,B1,One) A2.Exp(A2,B2,One) A3.Exp(A3,B3,One) A1.Add(A1,A2).Add(A1,A3) A1.Mod(A1,NewInt(2)) if A1.Cmp(One)==0 { Println(":-(") } else { Println(":-)") } }