gets;a=gets.split.map &:to_i p (a.count{|e|e&1<1}-a.size).abs