require"prime" N=gets.to_i p Prime.each(N).to_a[0..-2].inject(1){|a,b|x=1;x*=b while x*b<=N;a*x%998244353}