package contest200113; import java.io.PrintWriter; import java.util.Arrays; import java.util.Random; import java.util.Scanner; // 長すぎ短すぎ public class A0 { static Scanner in; static PrintWriter out; static String INPUT = ""; static void solve() { int n = ni(); if(!(1 <= n && n <= 10))throw new RuntimeException(); Random gen = new Random(); for(int i = 1;i <= n;i++) { for(int j = 0;j < n+(i == 1 ? (gen.nextBoolean() ? 1 : -1) : 0);j++) { out.print(i%10); } } out.println(); } public static void main(String[] args) throws Exception { in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT); out = new PrintWriter(System.out); solve(); out.flush(); } static int ni() { return Integer.parseInt(in.next()); } static long nl() { return Long.parseLong(in.next()); } static double nd() { return Double.parseDouble(in.next()); } static void tr(Object... o) { if(INPUT.length() != 0)System.out.println(Arrays.deepToString(o)); } }