def integer_to_ascii_string(integer):
	"""
	A given helper function to be used in decrypt.  The output of the standard Paillier
	decrypt function is an integer.  This function can convert the integer to an ASCII string
	"""
	mBytes = integer.to_bytes(((integer.bit_length() + 7) // 8), byteorder="big")
	message = mBytes.decode("utf-8")

	return message


def decrypt(ciphertext, a, b, n):
	"""
	A decrpytion function for a paillier cryptosystem.  Ouputs a string NOT an integer

	Args:
	ciphertext - the ciphertext to decrypt
	a - (p-1) * (q-1), information in the private key
	b - ((p-1) * (q-1)) ** -1 mod n, information in the private key
	n - p * q, where p and q are large primes, information in the public key

	Returns:
	message - a string of ASCII plaintext that was the encoded message.
	"""

	#TODO: Implement this function

	return message