1826: 【CSP循环】判奇偶求和█

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:4 Solved:2

Description

输入一个正整数 lns="http://www.w3.org/1998/Math/MathML">n ,如果 lns="http://www.w3.org/1998/Math/MathML">n 是奇数,则求 lns="http://www.w3.org/1998/Math/MathML">1n 之间所有的偶数之和;如果 lns="http://www.w3.org/1998/Math/MathML">n 是偶数,则求 lns="http://www.w3.org/1998/Math/MathML">n 所有的约数之和(包括 lns="http://www.w3.org/1998/Math/MathML">1 和本身)。

Input

一行,一个整数 lns="http://www.w3.org/1998/Math/MathML">n  lns="http://www.w3.org/1998/Math/MathML">1<n<5000)

Output

一行,一个整数。

Sample Input Copy

89

Sample Output Copy

1980