#!/usr/bin/env python3 a1, b1, a2, b2, a3, b3 = map(int, input().split()) k = (a1 + a2 + a3) % 2 print(k % 2 == 0 and ':-)' or ':-(')