The perimeter of a square is numerically equal to twice the area of the same square. What is the length of a side of the square? Let's think step by step and output the final answer within \boxed{}.
user