Where does “Рим” come from?

Рим (Tajik) comes from Russian Рим, from Old East Slavic Римъ, from Old Church Slavonic Римъ, from Proto-Slavic Rimъ, from Latin Rōma — Rome and/or Constantinople (the latter as "Nova Roma").

Ancestry of “Рим”, step by step

StepLanguageWordMeaning
1RussianРим—
2Old East SlavicРимъ—
3Old Church SlavonicРимъ—
4Proto-SlavicRimъRome
5LatinRōmaRome and/or Constantinople (the latter as "Nova Roma")
Every word from Latin Rōma →Every word from Proto-Slavic Rimъ →Every word from Old Church Slavonic Римъ →