# frozen_string_literal: true N = gets.to_i puts N.times.map { |i| (i + 1).to_s * N }.join