Read a file and print 1 for even number