a,b=$<.map(&:to_i).sort.partition &:odd? puts b,$/,a