Variational principle in Menger's spaces