#BS0000016. Bảng nhân (Multiplication Table)
Bảng nhân (Multiplication Table)
Multiplication Table
Source: CSES
Version: Phuoc Hung OJ Extended
Problem Statement
Consider an multiplication table. For , the value in row and column is
The integer is odd. Take all table values with multiplicity, sort them in non-decreasing order, and find the middle element. Its 1-based rank is
Input
One line contains odd .
Output
Print the middle value.
Subtasks
- Subtask 1 — 20%: .
- Subtask 2 — 30%: .
- Subtask 3 — 50%: , odd.
Examples
Input
3
Output
3
Explanation
For the table is
The sorted values are , so the middle value is .