As an avid watcher of the Iditarod Trail Sled Dog Race, you've decided that you want to enter your dog in the next contest. Every dog that races gets a number assigned to them. Given that your dog has received the number $$$n$$$ $$$(1 \leq n \leq 10^5)$$$, what is the maximum difference between any two permutations of $$$n$$$?
The first and only line of input will contain $$$n$$$ $$$(1 \leq n \leq 10^5)$$$.
Return the maximum difference between any two permutations of $$$n$$$.
4284
5994
| Name |
|---|


