In the figure shown, square 2 is formed by joining the mid-points of square 1, square 3 is formed by joining the mid-points of square 2 and so on. In this way total five squares are drawn. The side of the square 1 is 'a' cm. What is the sum of perimeters of all the five squares ?