ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules

2211. Integer Triangles

Time limit: 0.5 second
Memory limit: 256 MB
In geometry class, Vadim was given the task of drawing a triangle with an integer area S. There is only one problem: Vadim loves integers, so he does not intend to draw sides with non-integer lengths. How many different triangles can Vadim draw?
Two triangles are considered different if the sets of side lengths of these triangles are different.

Input

The input consists of a single line containing one integer S — the given area of the triangle (1 ≤ S ≤ 109).

Output

Output the number of different triangles with the given area that have integer sides.

Sample

inputoutput
6
1

Notes

A triangle with integer sides 3, 4, and 5 has an area of 6. There are no more triangles with that area.
Problem Author: Vadim Barinov
Problem Source: University academic school olympiad in informatics 2023