def getInputPrice(input_amount, input_reserve, output_reserve, params):
    """
    Calculates the input price, considering fees
    """
    fee_numerator = params['fee_numerator']
    fee_denominator = params['fee_denominator']
    input_amount_with_fee = input_amount * fee_numerator
    numerator = input_amount_with_fee * output_reserve
    denominator = (input_reserve * fee_denominator) + input_amount_with_fee
    return (numerator // denominator)