def max_aggregate(stdata):
    if not stdata:
        return 0

    max_sum = None
    for item in stdata:
        try:
            total = sum(item)
        except TypeError:
            total = item
        if max_sum is None or total > max_sum:
            max_sum = total
    return max_sum if max_sum is not None else 0