N = gets.chomp.to_i

for x in 1...N do
    for y in x+1..N do
        a = 1
        b = y-x
        while b%2 == 0
            b /= 2
            a += 1
        end
        print a
        print " "
    end
    puts
end