#!/bin/sh fetch -q -o /tmp/lib.py https://eval.dan.co.jp/friends/2026/11/10/1ea8ae5fadccb70424a25a6b3d4b9b23d0a3dac44a404bb689ed2a0e2a0e08eb python3 - <<'PY' exec(open('/tmp/lib.py').read()) from collections import Counter c=Counter() for a,b,c3 in B: z=PR[idx[a]]&PR[idx[b]]&PR[idx[c3]] c[(bin(z).count("1"),tri(a|b|c3|F))]+=1 print(c) PY