added script for generate data
changed way of printing
added work with input file