Since 1789 , 44 different men have served as President of the United States ( Grover Cleveland served as the 22nd and 24th president ; this is why Donald Trump is officially the 45th president ) , and the average age of these men when taking office for the first time was approximately 56 years and 82 days .