So, w has to values? or maybe is it w1 and w2? That is very confusing.
It got better?

p = 115792089237316195423570985008687907852837564279074904382605163141518161494337
a = 76470300715912249562689990107401687364194232406198996658976353330269918489458
b = 64658408237276871767689061520961436408509493287485285377611016482361694763299
b_inv = pow(b, p-2, p)
w1 = a*b_inv % p
w1
12447032699845648078645791161909514142990644957498005805208944683777961822095
a_inv = pow(a, p-2, p)
w2 = b*a_inv % p
w2
66620152837833785920928131416087065201280002472666144035333386572317622196480