A program that takes a number (P) from the user divides it into the first factors (P = m * n) and then first creates a magic square with length m, inside each house of which there is a magic square with length n. . Then it creates a magic square with length n, which inside each house is a magic square with length n.