#include <stdio.h>
main(void)
{
  int x = 1997;
  printf("%d (base 10) = %x (base 16) = ", x, x);
  while(x>0) { if(x&1) putchar('1'); else putchar('0'); x /= 2;  }
  printf(" (base 2)\n");
}
