a = list(map(int, input().split())) print(':-(' if (a[0]^a[2]^a[4])&1 else ':-)')