#include <stdio.h>
void printB(int num) {
    unsigned int mask = 1 << (sizeof(int) * 8 - 1);
    while (mask > 0) {
        if (num & mask)
            printf("1");
        else
            printf("0");
        mask >>= 1;
    }
    printf("\n");
}

int main(void) {
    int a = 65535;
    printB(a);
    printB(128);
}
