Find the sum of all odd natural numbers up to a given odd number . Do not use loops.
Note: To solve without loops, use the formula for the sum of odd numbers: , where .
A single line contains an odd natural number .
Print a single integer — the sum of all odd natural numbers up to .
This editor records if code is AI assisted. Write it yourself — if you are stuck, ask your teacher.