import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); sc.close(); int[] dp = new int[n + 1]; Arrays.fill(dp, 1); for (int k = 2; k < n; k++) { int k2 = k * k; if (k2 > n) { break; } for (int i = n / k2 * k2; i >= k2; i -= k2) { dp[i / k2] += dp[i]; dp[i] = 0; } } long ans = 0; for (int i = 1; i <= n; i++) { ans += (long) dp[i] * dp[i]; } System.out.println(ans); } }