The first line has two integers ..
The first line has one integer denotes the number of operations you did.Then there are integers denotes the you choose in each operations..
5 3
3 1 2 5