Inclusive properties of D mesons produced in 360 GeV π−p interactions