def kid_rsa_private_key(a, b, A, B):
 M = ((a * b) - 1)
 e = ((A * M) + a)
 d = ((B * M) + b)
 n = (((e * d) - 1) // M)
 return (n, d)

def kid_rsa_private_key ( a , b , A , B ) : M = ( ( a * b ) - 1 ) e = ( ( A * M ) + a ) d = ( ( B * M ) + b ) n = ( ( ( e * d ) - 1 ) // M ) return ( n , d )
compute m = a b - 1 .