john f kennedy time served as president?