import java.io.PrintWriter import java.util.* import kotlin.math.* fun PrintWriter.solve() { val n = nextInt() val m = nextInt() val ans = Array(n + 1) { 0 } for (a in 0..m) { for (b in 0..a) { for (c in 0..b) { for (d in 0..c) { val k = a * a + a * b + a * c + a * d + b * b + b * c + b * d + c * c + c * d + d * d if (k > n) break if (a == b) { if (b == c) { if (c == d) ans[k] += 1 else ans[k] += 4 } else { if (c == d) ans[k] += 6 else ans[k] += 12 } } else { if (b == c) { if (c == d) ans[k] += 4 else ans[k] += 12 } else { if (c == d) ans[k] += 12 else ans[k] += 24 } } } } } } println(ans.joinToString("\n")) } fun main() { val writer = PrintWriter(System.out, false) writer.solve() writer.flush() } // region Scanner private var st = StringTokenizer("") private val br = System.`in`.bufferedReader() fun next(): String { while (!st.hasMoreTokens()) st = StringTokenizer(br.readLine()) return st.nextToken() } fun nextInt() = next().toInt() fun nextLong() = next().toLong() fun nextLine() = br.readLine()!! fun nextDouble() = next().toDouble() // endregion