The town library surveyed visitors to determine their reading references. Fifty people said they like mysteries, 30 said they like history, and 6 said they like science fiction. However, of these, 5 like mysteries and history, 3 like history and science fiction, 2 like mysteries and science fiction, and 1 likes all three. Find the number of visitors surveyed.