Marcus is trying to create yet another data structure problem! The problem statement is as follows:
In the land of DMOJistan, citizens live in
cities along a number line, conveniently numbered from to . The city is at position and has a population of . As a member of the PEG (political espionage group), you have been tasked with ensuring that one city holds a majority of the power. Specifically, you will readjust the borders of DMOJistan to only contain the cities in the range
. How many pairs are there such that the city with the greatest population in the range has strictly greater than half the total population of the range?
Marcus attempted to create strong data for this problem, but Edward kept finding ways to cheese it. After Marcus gave up, Edward suggested that the data generation could be a problem in and of itself! Edward quickly finds an optimal construction, but Marcus has no idea what to do. Can you help him?
Your job is to construct an array of
Constraints
For all subtasks,
Subtask 1 [30%]
Subtask 2 [70%]
Input Specification
The first and only line of input contains one integer,
Output Specification
Output one line containing
Scoring
If you do not output
Otherwise, let
where
Sample Input
6
Sample Output
3 1 4 1 5 9
Explanation for Sample
There are
A pair such as
It can be shown that this construction is not optimal.
Comments