from collections import Counter

count = Counter()
for b in range(128, 256):
    string = chr(b)
    mojibake = [bytes([b])]
    for round in range(16):
        try:
            string = bytes(string, 'utf-8').decode('cp1252')
        except (UnicodeEncodeError, UnicodeDecodeError):
            break
        mojibake.append(string)
    count[",".join(str(len(x)) for x in mojibake)] += 1

for sig in sorted(count.keys()):
  print(count[sig], sig)