Fixed the output for the program
Perfect output