# Arup Guha
# 11/18/2012
# Solution to Junior Knights Homework 7D: Check Collector 2

LIMIT = 100

def main():

    # Prompt the user.
    value = int(input("Enter the value of all of your checks, ending with -1\n"))

    # All of our counters.
    smalltotal = 0
    largetotal = 0
    smallcount = 0
    largecount = 0
    
    # Loop until sentinel value
    while value != -1:

        # Process this value, keep track of its tally and total.
        if value <= LIMIT:
            smalltotal = smalltotal + value
            smallcount = smallcount + 1
        else:
            largetotal = largetotal + value
            largecount = largecount + 1
            
        value = int(input(""))

    # Get cumulative statistics.
    count = smallcount + largecount
    total = smalltotal + largetotal
    
    # Print out final tallies.
    print("You have collected ",smallcount," checks of $100 or less for a total of $", smalltotal,".", sep = "")
    print("You have collected ",largecount," checks of $100 or less for a total of $", largetotal,".", sep = "")
    print("In all, you got ",count," checks for a total of $", total, ".", sep = "")
    
main()
