Strong coupling constant with flavor thresholds at four loops in the MS scheme