All flow either north to the Japan Sea or south to the Inland Sea with the exception of the Gōnokawa River ( 206 kilometers ), which runs along the mountain range in Hiroshima and Shimane prefectures.