Four contestants, Zhang, Liu, Li and Zhao, who were not familiar with each other, participated in the university speech contest. They come from mathematics, logic, literature and history majors. Before the game, the four people made the following guesses: Zhang: Zhao's major is logic; Liu: Li's major is literature; Li: Zhang's major is not mathematics; Zhao: Liu's major is history. It was learned afterwards that only the guesses of mathematics and logic professionals were correct.
Zhang's major is Literature, Liu's major is history, Li's major is logic and Zhao's major is mathematics based on the above information.