import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long m = sc.nextLong(); long k = sc.nextLong(); sc.close(); long last = m - (long) (n - 1) * (n - 2) / 2; long sum = 0; int s = 0; int x = 0; for (int i = 1; i < n; i++) { sum += n - i; if (sum >= k) { s = i; sum -= n - i; x = (int) (k - sum); break; } } List list = new ArrayList<>(); int cnt = 0; for (int i = s; i < n; i++) { list.add(i); cnt++; if (cnt == x) { list.add(s - 1); } } for (int i = s - 2; i >= 0; i--) { list.add(i); } PrintWriter pw = new PrintWriter(System.out); for (int i = 0; i < n; i++) { if (list.get(i) == n - 1) { pw.println(last); } else { pw.println(list.get(i)); } } pw.flush(); } }