atcoder#ABC190D. [ABC190D] Staircase Sequences

[ABC190D] Staircase Sequences

Score : 400400 points

Problem Statement

How many arithmetic progressions consisting of integers with a common difference of 11 have a sum of NN?

Constraints

  • 1N10121 \leq N \leq 10^{12}
  • NN is an integer.

Input

Input is given from Standard Input in the following format:

NN

Output

Print the answer.

12
4

We have four such progressions:

  • [12][12]
  • [3,4,5][3, 4, 5]
  • [2,1,0,1,2,3,4,5][-2, -1, 0, 1, 2, 3, 4, 5]
  • [11,10,9,,10,11,12][-11, -10, -9, \dots, 10, 11, 12]
1
2

We have two such progressions:

  • [1][1]
  • [0,1][0, 1]
963761198400
1920