Just Arrange The Icons

easy
https://codeforces.com/problemset/problem/1267/J

Input Format

Check the link

Output Format

Check the link

Constraints

Check the link

Notice

Check the link

Example

Input

        
Output

        
Previous
Add To Neighbour And Remove
Next
Array Product

Related Questions