#!/usr/bin/python3 for x in range(0, 2**6): print('{0:b}10'.format(x), '{0:x}'.format(int('{0:b}10'.format(x), 2)))