which president of the us ruled for a shortest amount of time?