a,b,c,d,e,f=map(int,input().split()) print([':-)',':-('][(a+c+e)%2])