Two helicopters leave a heliport at the same time. The first flies 180km/h in a direction of 350 degrees. The second flies 270km/h in a direction of 190 degrees. After 9 hours, how far apart are the helicopters? Round your answer to the nearest kilometer.