In 1895 Bunin visited the Russian capital for the first time. There he was to meet the Narodniks Nikolay Mikhaylovsky and Sergey Krivenko, Anton Chekhov (with whom he began a correspondence and became close friends), Alexander Ertel, and the poets Konstantin Balmont and Valery Bryusov. 1899 saw the beginning of Bunin's friendship with Maxim Gorky, to whom he dedicated his "Falling Leaves" (1901) collection of poetry and whom he later visited at Capri. Bunin became involved with Gorky's Znanie (Knowledge) group. Another influence and inspiration was Leo Tolstoy whom he met in Moscow in January 1894. Admittedly infatuated with the latter's prose, Bunin tried desperately to follow the great man's lifestyle too, visiting sectarian settlements and doing a lot of hard work. He was even sentenced to three months in prison for illegally distributing Tolstoyan literature in the autumn of 1894, but avoided jail due to a general amnesty proclaimed on the occasion of the succession to the throne of Nicholas II. Tellingly, it was Tolstoy himself who discouraged Bunin from slipping into what he called "total peasantification." Several years later, while still admiring Tolstoy's prose, Bunin changed his views regarding his philosophy which he now saw as utopian.