WonderTeam
The Brasileiro League is the most important event in Brazil. There are n football teams participating in the competitions, each team plays twice (home and away) against each other team. Each team receives three points for a win and one point for a draw. No point is awarded for a loss.
When the games are finished, teams are ranked by numbers from 1 to n according to the total points. The rank of each team t having p points is one plus the number of teams having more than p points. It is possible that more than one team have the same ranks.
In addition to the Champion (the 1^st ranked team or teams), the WonderTeam is also awarded, if there exists one. The team that has absolutely the highest number of wins (absolutely means no other teams has the same number of wins), absolutely the highest number of goals scored, and absolutely the lowest number of goals conceded, is called the WonderTeam. (WonderTeam should have all these properties.)
Your task is to find out the worst possible rank for the WonderTeam.
Input
Consists of multiple test cases. Each test case consists of one line containing n (1 ≤ n ≤ 50), the number of teams in league. The input terminates with a line containing 0.
Output
For each test case write a single line containing the worst possible rank for the WonderTeam.