#!/usr/bin/env python3 def gen_num(n): s = "" for i in range(1, n + 1): j = i % 10 s += str(j) * n return int(s) def main(): n = int(input()) res = gen_num(n) print(res) if __name__ == "__main__": main()