what president of the united states held office for the shortest period?