Obtain A Permutation

easy
https://codeforces.com/problemset/problem/1294/E

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Notice

Check the link

Example

Input

        
Output

        
Previous
Strange Function
Next
Path Sum

Related Questions