AT_abc387_b [ABC387B] 9x9 Sum
Description
> Among the $ 81 $ integers that appear in the $ 9 $ -by- $ 9 $ multiplication table, find the sum of those that are not $ X $ .
There is a grid of size $ 9 $ by $ 9 $ .
Each cell of the grid contains an integer: the cell at the $ i $ -th row from the top and the $ j $ -th column from the left contains $ i \times j $ .
You are given an integer $ X $ . Among the $ 81 $ integers written in this grid, find the sum of those that are not $ X $ . If the same value appears in multiple cells, add it for each cell.
Input Format
The input is given from Standard Input in the following format:
> $ X $
Output Format
Print the sum of the integers that are not $ X $ among the $ 81 $ integers written in the grid.
Explanation/Hint
### Sample Explanation 1
The only cell with $ 1 $ in the grid is the cell at the 1st row from the top and 1st column from the left. Summing all integers that are not $ 1 $ yields $ 2024 $ .
### Sample Explanation 2
There is no cell containing $ 11 $ in the grid. Thus, the answer is $ 2025 $ , the sum of all $ 81 $ integers.
### Constraints
- $ X $ is an integer between $ 1 $ and $ 81 $ , inclusive.