Two teams play a counting game: Team Even collects all even numbers from 1 to N and Team Odd collects all odd numbers.
Print the total each team collects.
Input Format
A single integer N.
Output Format
Print two numbers separated by a space: the even sum, then the odd sum.
Constraints
• 1 ≤ N ≤ 10^5
Examples
Example 1
Explanation Evens: 2+4+6+8+10 = 30. Odds: 1+3+5+7+9 = 25.
Example 2
Explanation Only 1, which is odd.
Example 3
Explanation Evens: 2+4 = 6. Odds: 1+3+5 = 9.
Acceptance
—
Accepted
0
Submissions
0