N = int(input()) import sys if N == 1: print(1) exit() if N == 2: print(2) exit() Sum = [0] * (N + 1) i = 1 while i * i <= N: Sum[i*i] = 1 i += 1 for i in range(1,N+1): Sum[i] += Sum[i-1] dat = [1] * (N + 1) era = [0] * (N + 1) for i in range(2,N+1): if era[i] == 0: for j in range(2 * i,N+1,i): era[j] = 1 now = i count = 1 while now <= N: if count % 2 == 1: for j in range(now,N+1,now): dat[j] *= i else: for j in range(now,N+1,now): dat[j] //= i now *= i count += 1 ans = 0 for i in range(1,N+1): ans += Sum[N//dat[i]] print(ans)