https://codeforces.com/problemset/problem/260/C
Input Format
Check Link
Output Format
Check Link
Constraints
Check Link
Example
Input
4 4 4 3 1 6
Output
3 2 5 4
https://codeforces.com/problemset/problem/260/C
Check Link
Check Link
Check Link
4 4 4 3 1 6
3 2 5 4