def main(): *A, = map(int, input().split()) print(':-)' if (A[0]+A[2]+A[4]) % 2 == 0 else ':-(') if __name__ == '__main__': main()