#include <stdio.h>

int main()
{
    int x = 0;
    printf("%10s   %10s   %10s   %10s   \n", "Dec", "Bin", "Oct", "Hex");
    while(x < 256){

        int n, b=1, i=0, c;
        n=x;
        while (n!=0) {
            c=n%2;
            n=n/2;
            if(c==1)
                b=b*10+1;
            else
                b=b*10+0;
            i++;
        }


        printf("%10u   %10d   %10o   %10x   \n", x, b, x, x);
        x++;
    }
    return 0;
}