
import Foundation

let N = Int(readLine()!)!
var count = 0

for n in 1...N {
    for_i: for x in 1...N{
        for y in 1...x {
            for z in 1...y {
                if (x + y + z) * (x + y + z) - (x * y + y * z + z * x) > n {
                    break for_i
                } else if (x + y + z) * (x + y + z) - (x * y + y * z + z * x) == n {
                    count += 1
                    if x == y && y == z && z == x {
                        
                    } else if x == y || y == z || z == x {
                        count += 2
                    } else if x != y && y != z && z != x {
                        count += 5
                    }
                }
            }
        }
    }
    print(count)
    count = 0
}