Question 1151572
.


This problem pretends to be "a real life problem", but the input data is absolutely unrealistic.


So unrealistic, that the final solution seems to be mad.


So, twice and thrice check your input comparing with the source.


Find the error and then re-post to the forum.


Do not post it to me personally.