A square has a side of 40 cms . Another square is formed by joining the midpoints of the sides of the given square and this process is repeated infinitely. Find the perimters of all the squares thus formed.