import sys input = sys.stdin.readline mod=998244353 N=int(input()) LIST=[0]*(N+1) for i in range(1,N+1): for j in range(i,N+1,i): LIST[j]+=1 for i in range(1,N+1): LIST[i]=(LIST[i]+LIST[i-1])%mod print(sum(LIST))