Who was the longest king that ruled in china?