Goodwin has a sequence of numbers from which he wants to remove three elements so that the sequence is the prettiest.
The curvature of the sequence is set by the function
n ≤ 81 — 20 points
n ≤ 300 — 10 points
n ≤ 5000 — 20 points
Without additional restrictions — 50 points