import java.util.*; import java.math.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int w = sc.nextInt(); int d = sc.nextInt(); double a = 0; while (true) { if (d==1) {break;} else { a = Math.floor(w/(d*d)); w -= (int)a; System.out.println(w); d--; } } System.out.println(w); } }