Problem: Kavi has 2n points lying on the OX axis, i-th of which is located at x = i.

Kavi considers all ways to split these 2n points into n pairs. Among those, he is interested in good pairings, which are defined as follows:

Consider n segments with ends at the points in correspondent pairs. The pairing is called good, if for every 2 different segments A and B among those, at least one of the following holds:

  * One of the segments A and B lies completely inside the other. 
  * A and B have the same length. 



Consider the following example:

<image>

A is a good pairing since the red segment lies completely inside the blue segment.

B is a good pairing since the red and the blue segment have the same length.

C is not a good pairing since none of the red or blue segments lies inside the other, neither do they have the same size.

Kavi is interested in the number of good pairings, so he wants you to find it for him. As the result can be large, find this number modulo 998244353.

Two pairings are called different, if some two points are in one pair in some pairing and in different pairs in another.

Input

The single line of the input contains a single integer n (1≤ n ≤ 10^6).

Output

Print the number of good pairings modulo 998244353.

Examples

Input


1


Output


1

Input


2


Output


3

Input


3


Output


6

Input


100


Output


688750769

Note

The good pairings for the second example are: 

<image>

In the third example, the good pairings are: 

<image>

Solution (in CPP):

Solution:
// time-limit: 1000
// problem-url: https://codeforces.com/contest/1529/problem/D
#include<bits/stdc++.h>

using namespace std;

template <int _mod = 998244353>
class Modular {

 private:
  static constexpr int mod = _mod;
  static_assert(_mod > 0, "mod must be positive");
  
  int value;

 public:

  Modular() : value(0) {}
  template <typename U> Modular(const U& _value) {
    value = normalize(_value);
  }
    
  template <typename U> static int normalize(const U& _value) {
    int v;
    if (-mod <= _value && _value < mod) v = static_cast<int>(_value);
    else v = static_cast<int>(_value % mod);
    if (v < 0) v += mod;
    return v;
  }
  template <typename U> static U inverse(U a, U m) {
    U u = 0, v = 1;
    while (a != 0) {
      U t = m / a;
      m -= t * a; swap(a, m);
      u -= t * v; swap(u, v);
    }
    assert(m == 1);
    return u;
  }
    
  const int& operator ()() const { return value; }
  template <typename U> explicit operator U() const { return static_cast<U>(value); }

  template <typename U> friend U& operator << (U& stream, const Modular& number) {
    return stream << number();
  }
  template <typename U> friend U& operator >> (U& stream, Modular& number) {
    long long x;
    stream >> x;
    number.value = normalize(x);
    return stream;
  }

  Modular& operator -= (const Modular& other) { if ((value -= other.value) < 0) value += mod; return *this; }
  template <typename U> Modular& operator -= (const U& other) { return *this -= Modular(other); }
  Modular& operator += (const Modular& other) { return *this -= Modular(mod - other.value); }
  template <typename U> Modular& operator += (const U& other) { return *this += Modular(other); }
  Modular& operator ++ () { return *this += 1; }
  Modular& operator -- () { return *this -= 1; }
  Modular operator ++ (int) { Modular result(*this); *this += 1; return result; }
  Modular operator -- (int) { Modular result(*this); *this -= 1; return result; }
  Modular operator - () const { return Modular(-value); }
    
  Modular& operator *= (const Modular& other) {
    value = normalize(static_cast<long long>(value) * static_cast<long long>(other.value));
    return *this;
  }
  template <typename U> Modular& operator *= (const U& other) { return *this *= Modular(other); }
  Modular& operator /= (const Modular& other) { return *this *= Modular(inverse(other.value, mod)); }
  template <typename U> Modular& operator /= (const U& other) { return *this /= Modular(other); }
    
  friend bool operator == (const Modular& first, const Modular& second) { return first.value == second.value; }
  template <typename U> friend bool operator == (const Modular& first, const U& second) { return first == Modular(second); }
  template <typename U> friend bool operator == (const U& first, const Modular& second) { return Modular(first) == second; }
    
  friend bool operator != (const Modular& first, const Modular& second) { return !(first.value == second.value); }
  template <typename U> friend bool operator != (const Modular& first, const U& second) { return first != Modular(second); }
  template <typename U> friend bool operator != (const U& first, const Modular& second) { return Modular(first) != second; }

  friend Modular operator + (const Modular& first, const Modular& second) { return Modular(first) += second; }
  template <typename U> friend Modular operator + (const Modular& first, const U& second) { return Modular(first) += second; }
  template <typename U> friend Modular operator + (const U& first, const Modular& second) { return Modular(first) += second; }

  friend Modular operator - (const Modular& first, const Modular& second) { return Modular(first) -= second; }
  template <typename U> friend Modular operator - (const Modular& first, const U& second) { return Modular(first) -= second; }
  template <typename U> friend Modular operator - (const U& first, const Modular& second) { return Modular(first) -= second; }

  friend Modular operator * (const Modular& first, const Modular& second) { return Modular(first) *= second; }
  template <typename U> friend Modular operator * (const Modular& first, const U& second) { return Modular(first) *= second; }
  template <typename U> friend Modular operator * (const U& first, const Modular& second) { return Modular(first) *= second; }

  friend Modular operator / (const Modular& first, const Modular& second) { return Modular(first) /= second; }
  template <typename U> friend Modular operator / (const Modular& first, const U& second) { return Modular(first) /= second; }
  template <typename U> friend Modular operator / (const U& first, const Modular& second) { return Modular(first) /= second; }
  
  template <typename U> friend Modular power(const Modular& base, const U& exponent) {
    assert(exponent >= 0);
    Modular x = base, res = 1;
    U p = exponent;
    while (p > 0) {
      if(p & 1) res *= x;
      x *= x;
      p >>= 1;
    }
    return res;
  } 
};

using num = Modular<998244353>;
// <, >, <=, >= comparisons not available
void testCase();

signed main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int T = 1, t = 0;
  while (t++ < T) {
    testCase();
  }
  return 0;
}

void testCase() {
  int n; cin >> n;
  vector<int> fac(n + 1, 1);
  for (int i = 2; i <= n; i++) {
    for (int j = i; j <= n; j += i) {
      fac[j] += 1; 
    }
  }
  num sum = 0, ans;
  for (int i = 1; i <= n; i++) {
    ans = sum + (num)fac[i];
    sum += ans;
  }
  cout << ans << '\n';
}