One mole of 1,2-dibromopropane on treatment with X moles of NaNH2 followed by treatment with ethyl bromide gave a 2-pentyne. The value of X is: