Complete running program

Sample input are given at the top of the program to support running and
testing it