{
local(i, S5T01, S4T11, S3T21, S2T31, S1T41, S0T51, S5T02, S4T12, S3T22, S2T32, S1T42, S0T52, S5T03, S4T13, S3T23, S2T33, S1T43, S0T53, S5T04, S4T14, S3T24, S2T34, S1T44, S0T54, S5T05, S4T15, S3T25, S2T35, S1T45, S0T55);
i=0;
for(S5T01 = 0, 1,
  for(S4T11 = 0, 1,
    for(S3T21 = 0, 1,
      for(S2T31 = 0, 1,
        for(S1T41 = 0, 1,
          for(S0T51 = 0, 1, 
            for(S5T02 = 0, 1,
              for(S4T12 = 0, 1,
                for(S3T22 = 0, 1,
                  for(S2T32 = 0, 1,
                    for(S1T42 = 0, 1,
                      for(S0T52 = 0, 1,
                        for(S5T03 = 0, 1,
                          for(S4T13 = 0, 1,
                            for(S3T23 = 0, 1,
                              for(S2T33 = 0, 1,
                                for(S1T43 = 0, 1,
                                  for(S0T53 = 0, 1,
                                  i += 1;
                                  print(i"/262,144");
                                    for(S5T04 = 0, 1,
                                      for(S4T14 = 0, 1,
                                        for(S3T24 = 0, 1,
                                          for(S2T34 = 0, 1,
                                            for(S1T44 = 0, 1,
                                              for(S0T54 = 0, 1,
                                                for(S5T05 = 0, 1,
                                                  for(S4T15 = 0, 1,
                                                    for(S3T25 = 0, 1,
                                                      for(S2T35 = 0, 1,
                                                        for(S1T45 = 0, 1,
                                                          for(S0T55 = 0, 1,

S5T06 = (S5T01 + S5T02 + S5T03 + S5T04 + S5T05) %2;
S4T16 = (S4T11 + S4T12 + S4T13 + S4T14 + S4T15 + 1) %2;
S3T26 = (S3T21 + S3T22 + S3T23 + S3T24 + S3T25) %2;
S2T36 = (S2T31 + S2T32 + S2T33 + S2T34 + S2T35) %2;
S1T46 = (S1T41 + S1T42 + S1T43 + S1T44 + S1T45 + 1) %2;
S0T56 = (S0T51 + S0T52 + S0T53 + S0T54 + S0T55) %2;

if(matdet([S5T01, S4T11, S3T21, S2T31, S1T41, S0T51; S5T02, S4T12, S3T22, S2T32, S1T42, S0T52; S5T03, S4T13, S3T23, S2T33, S1T43, S0T53; S5T04, S4T14, S3T24, S2T34, S1T44, S0T54; S5T05, S4T15, S3T25, S2T35, S1T45, S0T55; S5T06, S4T16, S3T26, S2T36, S1T46, S0T56]) %2 != 0 &&

((S5T01*S^5 + S4T11*S^4*T + S3T21*S^3*T^2 + S2T31*S^2*T^3 + S1T41*S*T^4 + S0T51*T^5)^5 + (S5T02*S^5 + S4T12*S^4*T + S3T22*S^3*T^2 + S2T32*S^2*T^3 + S1T42*S*T^4 + S0T52*T^5)^5 + (S5T03*S^5 + S4T13*S^4*T + S3T23*S^3*T^2 + S2T33*S^2*T^3 + S1T43*S*T^4 + S0T53*T^5)^5 + (S5T04*S^5 + S4T14*S^4*T + S3T24*S^3*T^2 + S2T34*S^2*T^3 + S1T44*S*T^4 + S0T54*T^5)^5 + (S5T05*S^5 + S4T15*S^4*T + S3T25*S^3*T^2 + S2T35*S^2*T^3 + S1T45*S*T^4 + S0T55*T^5)^5 + (S5T06*S^5 + S4T16*S^4*T + S3T26*S^3*T^2 + S2T36*S^2*T^3 + S1T46*S*T^4 + S0T56*T^5)^5) * Mod(1,2) == 0,

print([S5T01, S4T11, S3T21, S2T31, S1T41, S0T51; S5T02, S4T12, S3T22, S2T32, S1T42, S0T52; S5T03, S4T13, S3T23, S2T33, S1T43, S0T53; S5T04, S4T14, S3T24, S2T34, S1T44, S0T54; S5T05, S4T15, S3T25, S2T35, S1T45, S0T55; S5T06, S4T16, S3T26, S2T36, S1T46, S0T56])

)
))))))))))))))))))))))))))))))
}