Imperfect Competition in the Factor and Product Markets