def most_square_shape(N):
 for i in xrange(int(numpy.sqrt(N)), 0, (-1)):
  if (0 == (N % i)):
   return (i, (N / i))

def most_square_shape ( N ) : for i in xrange ( int ( numpy . sqrt ( N ) ) , 0 , ( - 1 ) ) : if ( 0 == ( N % i ) ) : return ( i , ( N / i ) )
return a rectangle with area n that is closest to square .