Changed the print format and added proper input data