His first collection of poetry ( Odes et poÃ sies diverses ) was published in 1822 . At the time , Hugo was only twenty years old . His first collection of poetry ( Odes et poÃ sies diverses ) was published in 1822 , when Hugo was only twenty years old , and earned him a royal pension from Louis XVIII .