from functools import reduce

# what are our constraints?
# c > b >= a
# a + b = 1000 - c
# a^2 + b^2 = c^2


def pyth_trip():
	sum_vals = 1000
	c_vals = range(sum_vals, 0, -1)
	for c in c_vals:
		for b in range(1, sum_vals - c):
			a = sum_vals - (b + c)
			if a * a + b * b == c * c:
				return (a, b, c)

print(reduce(lambda x, y: x * y, pyth_trip()))
	

92f10907c0a3b619c0cf863f0864ee76358cda9f
<mask token>

<mask token>


def pyth_trip():
    sum_vals = 1000
    c_vals = range(sum_vals, 0, -1)
    for c in c_vals:
        for b in range(1, sum_vals - c):
            a = sum_vals - (b + c)
            if a * a + b * b == c * c:
                return a, b, c


<mask token>

<mask token>


def pyth_trip():
    sum_vals = 1000
    c_vals = range(sum_vals, 0, -1)
    for c in c_vals:
        for b in range(1, sum_vals - c):
            a = sum_vals - (b + c)
            if a * a + b * b == c * c:
                return a, b, c


print(reduce(lambda x, y: x * y, pyth_trip()))

from functools import reduce


def pyth_trip():
    sum_vals = 1000
    c_vals = range(sum_vals, 0, -1)
    for c in c_vals:
        for b in range(1, sum_vals - c):
            a = sum_vals - (b + c)
            if a * a + b * b == c * c:
                return a, b, c


print(reduce(lambda x, y: x * y, pyth_trip()))

from functools import reduce

# what are our constraints?
# c > b >= a
# a + b = 1000 - c
# a^2 + b^2 = c^2


def pyth_trip():
	sum_vals = 1000
	c_vals = range(sum_vals, 0, -1)
	for c in c_vals:
		for b in range(1, sum_vals - c):
			a = sum_vals - (b + c)
			if a * a + b * b == c * c:
				return (a, b, c)

print(reduce(lambda x, y: x * y, pyth_trip()))
	
