| Statement | You are given N 'i's and N-1 'w's in some order. Alternate 'i' and 'w'. # Multiple testcases You are given one or more testcases separated by ':' in this problem. Constraints * 2 ≤ N * 3 ≤ |S| ≤ 50 |
|---|---|
| Sample Input | |
| Sample Output |