#include using namespace std; #define int long long inline int read () { int x = 0, f = 1; char ch = getchar (); while ('0' > ch || '9' < ch) { if (ch == '-') f = -1; ch = getchar (); } while (ch <= '9' && '0' <= ch) { x = (ch ^ 48) + (x << 3) + (x << 1); ch = getchar (); } return x * f; } int n, a, b; signed main () { cin >> n >> a >> b; if (a * b < n || a + b - 1 > n) { cout << -1 << '\n'; return 0; } for (int t = min(a, n - b + 1); n > 0; n -= t, --b, t = min(a, n - b + 1)) for (int i = n - t + 1; i <= n; ++ i) cout << i << ' '; return 0; }