/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.io.*;
import java.util.Scanner;

/**
 *
 * @author tudordatcu
 */
public class JavaApplication40 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {

        FileWriter outFile = new FileWriter("OUT2.txt");
        FileReader inFile = new FileReader("DATA2.txt");
        Scanner scan = new Scanner(inFile);

        int divisors[][] = new int[1000][2];

        for (int i = 1; i < 1001; i++) {

            int counter = 0;
            divisors[i - 1][0] = i;

            for (int j = 1; j <= i; j++) {

                if (i % j == 0) {
                    counter++;


                }


            }
            
            if (counter % 2 == 0){
                
                counter = counter/2;
                
            }else{
                
                counter = (counter-1)/2 + 1;
                
            }
            
            divisors [i-1][1] = counter;


        }



        for (int i = 0; i < 5; i++) {
            
            int num = scan.nextInt();
            int sum = 0;
            
            for (int j = 0; j<num; j++){
                
                sum += divisors[j][1];
                
            }
            
            outFile.write("" + sum + "\r\n");
            
            
        }
        outFile.close();
        inFile.close();


    }
}

