José and Rosie were spelunking in the caves in the Black Hills of South Dakota. They crawled through a multitude of passages, traveling a net 3 kilometers westward, 4 kilometers south, and 50 meters up. What was magnitude of their overall displacement to the nearest kilometer?