list comprehension, find right triangles