hs={} gets x=gets.split.map{|e| e.to_i} x.each{|e| hs[e]=1 } cs=15.times.map{0} hs.keys.each{|e| p1=0 while e>0 if e%2==1 cs[p1]+=1 end p1+=1 e=e/2 end } ans=1 cs.each{|e| ans*=2 if e>0 } puts ans