How long to learners stay in Canada to train?

Residents usually train for 3-4 months and Fellows usually train for 9-12 months