import gmpy2a =17864794979971570785662379545162618804766262787343692042702758269883889880586532847627739497710377379133808960631449783320988646048192570215912044938749524
b =-13621141169596935340266315340985039224136344718074933889533949465140677745823364383681578938184100437272345798403178955533646651900746775131413434846238
p =(a+b)//2
q =(a-b)//2e =10047043
c =69438002917126922598100563033498117313059846761810276515472583443315330486249787234883817833581207875555700236192620757221236321345758328116228588060369915110756725993793015468270271016511452766921167161147012916764025925564206014322176252492257911319837663802977180850930169713449697400352784352130585038509
n = p*q
phi =(p-1)*(q-1)d = gmpy2.invert(e,phi)
m =pow(c,d,n)print(m)print(hex(m))print(bytes.fromhex(hex(m)[2:]))