Ami Dongsuo, the god of the hills in Tibetan, guards the Qilian Mountains, whose Chinese name is Niuxin Mountain.
Ami Dongsuo is a holy mountain which is famous for the fantastic love story about Zhuoer Mountain.
The surrounding environments prompt Ami Dongsuo to form a huge sheep farmland.
According to a shocking new report by the excellent ecologist Mr. Ma, Ami Dongsuo has $n$ different pastures in total.
With the help of local herdsmen, Mr. Ma describes the number of sheep in each pasture and all paths between different pastures.
Today, under his leadership, three adventurers Alice, Bob and Carol decide to visit some pastures in Ami Dongsuo.
Mr. Ma has shown them a requirement, which is described by an integer $k$ that they should meet.
These three adventurers will start their tours at the same pasture and visit three different routes, where their starting point is selected by themselves and thus it could be anywhere.
Furthermore, a route may pass through one or more pastures.
Since the altitude rises to nearly $5000$ meters at the peak, and going up the hill or even climbing is quite a tiring job, adventurers have reached an agreement that the altitudes at all pastures in a route should be strictly decreasing in visiting order.
If go along their routes respectively, they will finally arrive at some pastures, which may not be distinct.
The requirement described by $k$ from Mr. Ma requires that the total number of sheep in these three destinations, considering with the multiplicities, is equal to $k$.
Now, Mr. Ma hopes that someone can tell him, for any positive integer $k$, how many different plans exist for Alice, Bob and Carol that would meet what he requires.
In this problem, we consider a plan as a set with three different routes sharing the common starting point.
Two routes are considered different if their starting points vary or their sequences of visited paths in order vary.
Two plans are considered different if at least one route that is contained in one plan but not in the other exists.