#!/usr/bin/env python3

for v in range(0, 256):
    print( '{:3d}  {:#04x}  {:#010b}'.format(v, v, v))