RSA rearranged