def Wiener (n, s):
M = 10101
E = M.powermod(s,n)
cf = continued_fraction(s/n)
m = len(cf)
for i in range(0, m ):
t = cf.quotient(i)
d = E.powermod(t,n)
if d == M:
print("k:= {0}".format(cf.quotient( i)))
print("The totient of the modulus is {0}".format((s*t)/(cf.quotient(i))))
print("The private key is {0}".format(t))
return t
print("Private key not found")