# Arup Guha
# 1/5/2013
# Solution to Programming Knights Practice Program Chapter 3 Problem 5
# a,b,c: Note - the problem statement should force each to be positive,
#        or at least non-negative. In this solution we assume all three
#        of the variables are positive.

SUM = 15

def main():

    numSols=0

    # Go through each of a, b and c and check for equality.
    for a in range(1,SUM): 
        for b in range(a+1, SUM):
            for c in range(b+1, SUM):
                if a+b+c == SUM:
                    print("a=",a,", b=",b,", c=",c)
                    numSols = numSols + 1

    # Report total number of solutions
    print("There were", numSols, "number of solutions.\n")


main()
