what us president served the shortest term as an elected president?