def lscan; gets.split.map(&:to_i); end a,b,c,d,e,f = lscan x = 0 x += a.odd? ? 1 : 0 x += c.odd? ? 1 : 0 x += e.odd? ? 1 : 0 puts x.odd? ? ':-(' : ':-)'