import sys if sys.platform =='ios': import clipboard a=clipboard.get() a = a.split('\n') text = '\n'.join(a) with open('input_file.txt','w') as f: f.write(text) sys.stdin = open('input_file.txt') A = list(map(int,input().split())) cnt = 0 if A[0]%2 == 1: cnt += 1 if A[2]%2 == 1: cnt += 1 if A[4]%2 == 1: cnt += 1 if cnt == 0 or cnt == 2: exit(print(":-)")) print(":-(")