#NEWLINE# def powMod( base , power , modulus ) : #NEWLINE# #INDENT# base = gmpy . mpz ( base ) #NEWLINE# power = gmpy . mpz ( power ) #NEWLINE# modulus = gmpy . mpz ( base ) #NEWLINE# result = pow ( base , power , modulus ) #NEWLINE# return long ( result )