Before traveling to space, an astronaut undertook 6091 hours of training. Once in space, he spends an additional 1713 hours on various exercises and tasks. How many total hours has the astronaut spent on training and tasks?