def sumNumber(num):
    """ Gives the sum of all the positive numbers before input number """
    # Used for rank based selection

    sum_num = 0
    for i in range(num+1):
        sum_num += i

    return sum_num