
    Given a patient's composite health risk score, determine the maximum risk assessment value by either using the current score directly or by evaluating weighted combinations of sub-scores from clinical, behavioral, demographic, and social health determinants. The risk assessment function f(n) should calculate the maximum between the current risk score n and the sum of recursively evaluated sub-scores (f(n/2) + f(n/3) + f(n/4) + f(n/5)), where each fraction represents the weighted contribution from different healthcare assessment categories.
    

    
def get_max_sum(n):
    """
    Given a patient's composite health risk score, determine the maximum risk assessment value by either using the current score directly or by evaluating weighted combinations of sub-scores from clinical, behavioral, demographic, and social health determinants. The risk assessment function f(n) should calculate the maximum between the current risk score n and the sum of recursively evaluated sub-scores (f(n/2) + f(n/3) + f(n/4) + f(n/5)), where each fraction represents the weighted contribution from different healthcare assessment categories.
    

    """
def get_max_sum(n):
    """
    Given a patient's composite health risk score, determine the maximum risk assessment value by either using the current score directly or by evaluating weighted combinations of sub-scores from clinical, behavioral, demographic, and social health determinants. The risk assessment function f(n) should calculate the maximum between the current risk score n and the sum of recursively evaluated sub-scores (f(n/2) + f(n/3) + f(n/4) + f(n/5)), where each fraction represents the weighted contribution from different healthcare assessment categories.
    

    """
    res = list()
    res.append(0)
    res.append(1)
    i = 2
    while i < n + 1:
        res.append(max(i, res[int(i / 2)] + res[int(i / 3)] + res[int(i / 4)] + res[int(i / 5)]))
        i = i + 1
    return res[n]