#AGC007B. [AGC007B] Construct Sequences
[AGC007B] Construct Sequences
Score : points
Problem Statement
You are given a permutation of the set {}. Please construct two sequences of positive integers , , ..., and , , ..., satisfying the following conditions:
- for all
Constraints
- is a permutation of the set {}
Input
The input is given from Standard Input in the following format:
Output
The output consists of two lines. The first line contains , , ..., seperated by a space. The second line contains , , ..., seperated by a space.
It can be shown that there always exists a solution for any input satisfying the constraints.
and . So this output satisfies all conditions.