skipping the words which denominators does not exist
deleted println
removed main method