f=lambda x:int(bin(x)[:1:-1],2)

for n in range(25):
    print('f(%s) = %s' % (n, f(n)))