Joke Collection Website - Joke collection - What does this joke mean?

What does this joke mean?

Haha, because the headmaster was in your English teacher's room when you threw your head, and you hit the headmaster, which means that the headmaster was having an affair with your English teacher. He saw the words "Love you for ten thousand years" on the brick. The headmaster thought that the brick was written by Wang Wannian, and the doorman happened to be Wang Wannian, so he was fired.