object Main{ def main(args: Array[String]){ val input=io.Source.stdin.getLines().mkString("\n"); println(solve(input).trim()); } def solve(input:String):String={ if(input.split(" ").map(_.toInt).zipWithIndex.filter{v => v._2%2==0 && v._1%2==1 }.size % 2 == 0){ ":-)" }else{ ":-(" } } }