def METHOD_NAME(F, r=1):
    for _ in range(r):
        face = faces[F]
        rv = []
        for c in range(n):
            for r in range(n - 1, -1, -1):
                rv.append(face[r, c])
        faces[F] = Matrix(n, n, rv)