At which stage(s) in meiosis is DNA condensed into chromosomes?

prophase I only
prophase I and II
metaphase I and II
metaphase II only