t = 0 for a in range(1,101): for b in range(1,101): for c in range(1,101): if a<=b and a*a + b*b == c*c: print(a,b,c) t = t +1 print(t)