Constructive Problem
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
Special Judge, 64bit IO Format: %lld

题目描述

Adam has an array a consisting of n integers . We call this array beautiful if the number of occurrences of i is a_i for .
For example:
  •  is beautiful. In this array, 0 appears 1 time, 1 appears 2 times, 2 appears 1 time, and 3 appears 0 times, and .
  •  is not beautiful. Because  but in fact 0 appears 1 time.
Find a beautiful array of length n. If there are multiple answers, output any. If there is no beautiful array of length n, output -1.

输入描述:

The input contains an integer n  --- the length of the beautiful array.

输出描述:

Output a beautiful array of length n. If there are multiple answers, output any. If there is no beautiful array of length n, output -1.
示例1

输入

复制
4

输出

复制
1 2 1 0

说明

In Example 1, [1,2,1,0] or [2,0,2,0] are both beautiful array of length 4, and you can output any of them.
示例2

输入

复制
2

输出

复制
-1