What is the typical first step towards obtaining a permanent resident visa in New Zealand?

A. Applying directly for a permanent resident visa
B. Being invited to apply for a resident visa by Immigration New Zealand
C. Studying in New Zealand for 3 years and then applying for residency
D. Obtaining a work visa and working in New Zealand for 5 years
Answer: 