#include <stdio.h>
#include <stdlib.h>

int n;
unsigned int mask;

int main(int argc, char* argv[])
{
   n = atoi(argv[1]);
   printf("%x\n", n);

   mask = 0x80000000;
   while (mask != 0)
   {
      if ((mask & n) == 0)
         printf("0");
      else
         printf("1");
   __asm__("movl $_mask,%eax
        shrl %eax,1
        movl %eax,$_mask")      ; 
   }
   putchar('\n');
}
