Lord Rama ruled Trilok for 10013 years after coming back from forest. He was sent to forest for exile of 14 years in the age of 25 and on his arrival he turned 39. So, in total He lived 10052 years.