# frozen_string_literal: true N = gets.to_i result = N.times.reverse_each.map { |i| i.to_s * N }.join puts result == '0' ? '1' : result