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 JAVA):

Solution:
import java.util.*;

public class Dkavipairing{
    public static Scanner input = new Scanner(System.in);
    static int [] primos = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71,
                            73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 
                            157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 
                            239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 
                            331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 
                            421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 
                            509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 
                            613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 
                            709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 
                            821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 
                            919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997};

    static long numod = 998244353;

    public static void main(String[] args) {
        // int casos = input.nextInt(); // dbug
        // for (int i=1; i<=casos; i++) { // dbug
            // int result = solvecaso(); // dbug
        // } // dbug
        solvecaso(); // dbug
    }

    public static int solvecaso(){
        int n = input.nextInt();
        if (n < 2) {
            System.out.println(1);
            return 0;
        }

        int facts, antfacts;
        antfacts = 1;

        long dpnum, antdpnum;
        dpnum = 1;
        antdpnum = 0L;
        antfacts = 0;
        for (int i = 1; i <= n; ++i){
            facts = numFactores(i);
            dpnum = (facts-antfacts+2L*antdpnum)%numod;
            antfacts = facts;
            antdpnum = dpnum;
        }

        System.out.println(dpnum);
        return 0;
    }

    static int numFactores(int n){
        if (n <= 1) {
            return 1;
        }
        int factores = 1;
        for (int primo : primos) {
            if (primo*primo > n) {
                break;
            }
            if (n%primo != 0) {
                continue;
            }
            int i;
            for ( i = 1; n%primo == 0; ++i){
                n /= primo;
            }
            factores *= i;
        }
        if (n != 1) {
            factores *= 2;
        }

        return factores;
    }
}