n = int(input()) m = (n + 1) // 2 s = ''.join(str(i) for i in range(1, m + 1)) second_part = s[:n - m] print(s + second_part)