rs with distinct f