#!/root/clam/clam
#include "stdlib.h"

/*
 * Print the number entered in binary.
 */
main()
{
  print("Enter number: ");
  r = "binary"(s=gets());
  print('%{s:r}\n0x%{(int)s:08X}\n');
}

binary(int a)
{
  str s = "";

  if (a>>1) s = binary(a>>1);
  return s + ((a&1)? "1" : "0");
}
