from random import randint
def inv(v):
return pow(v, N-2, N)
def divnum(a, b):
return (a * inv(b)) % N
if __name__ == '__main__':
N = 115792089237316195423570985008687907852837564279074904382605163141518161494337
i = 0
StarT = 13000
my_input = 13000
delta = 4
gamma = 2
z = 1
d1 = 80
pp = 0
while i <= 3:
z = 1
i = i + 1
while z <= 6:
pp = pp + 1
d = divnum(my_input - z, delta) % N
s = divnum(i, gamma) % N
result = divnum(d, s) % N
z = z + 1
if result <= my_input and result <=555550:
print(f'StartT {StarT}\nresult {result} i {i} input {my_input} z {z}')
my_input = result
pp = pp + 1
print(f'pp {pp} i {i}')