Changed program
Hard coded the input data. Need to add 3 more segments present in
comments.