Someone has x pieces of gold. He wants to distibute them in groups in such a way that each group contain equal number of pieces. When he put two pieces in each group, one piece remained. The same thing happened when he put 3, 4, 5, 6, 7, 8, 9, and 10 pieces in each group: each time, one piece remained. But when he put 11 pieces in each group, no piece is remained. How many iron pieces are there?