No submissions yet

Submit your solution to display here.

Please login/signup to submit your solution.
Loading...

Input

165 1 4660 119 90

Expected Output

165 1 52 18 119 90