Sample output

Figure 1 shows the program output for a typical set of input values.