gets.to_i list = gets.to_s.split(" ").map(&:to_i) puts 0 if list.size().even? puts 1 if list.size().odd?