Inferrence of Potts model from MSA