import java.util.*; class Main{ public static void main(String[] $) { Scanner s=new Scanner(System.in); int[]a=new int[6]; Arrays.setAll(a,i->s.nextInt()); System.out.println((a[0]+a[2]+a[4])%2==0?":-)":":-("); } }