which us president ruled for the shortest time?