Inherited from Old East Slavic Римъ (Rimŭ).
Рым • (Rym) m inan (genitive Ры́ма, uncountable, relational adjective ры́мскі)