read input file, calculate and print out bit representation of X