#ABC227C. [ABC227C] ABC conjecture

[ABC227C] ABC conjecture

提示:该题测试数据补录中,暂不支持评测提交。

No testdata at current.

No submission language available for this problem.

Score : 300300 points

Problem Statement

You are given a positive integer NN.

Find the number of triples of positive integers (A,B,C)(A, B, C) such that A≤B≤CA\leq B\leq C and ABC≤NABC\leq N.

The Constraints guarantee that the answer is less than 2632^{63}.

Constraints

  • 1≤N≤10111 \leq N \leq 10^{11}
  • NN is an integer.

Input

Input is given from Standard Input in the following format:

NN

Output

Print the answer.

4
5

There are five such triples: (1,1,1),(1,1,2),(1,1,3),(1,1,4),(1,2,2)(1,1,1),(1,1,2),(1,1,3),(1,1,4),(1,2,2).

100
323
100000000000
5745290566750