import sys def _solve(N): num = '1234567890' for i in range(N): for j in range(N): yield num[i] def solve(in_): N = int(next(in_)) return _solve(N) def main(): answer = solve(sys.stdin.buffer) print(''.join(str(s) for s in answer)) if __name__ == '__main__': main()