N=gets.to_i if N==1 puts 1 exit end puts ((1..N-1).to_a+[0]).map{|e|e.to_s*N}.join("")