import java.util.*; class Main{ public static void main (String[] args) { Scanner s = new Scanner(System.in); int l = 0; for (int i =0; i<3 ;i++){ int a =s.nextInt(); int b =s.nextInt(); l += a%2; } if(l%2 == 0){ System.out.println(":-)"); }else{ System.out.println(":-("); } } }