import numpy as np A = np.array(input().split(),dtype = np.int32) print(':-)' if np.count_nonzero(A[::2]%2 == 1)%2 == 0 else ':-(')