You are given a string S and an integer K. Print the valid partition of the string. A valid partition for a provided S and K satisfies the following properties:
If a valid partition is not possible, then print -1.
Print the strings s1,s2...,sm in the partitions that are separated by '−'.
Input format
Output format
For each test case, print a single line containing the valid partition.
Constraints
1≤t≤10
2≤|S|≤1000 where |S| is the length of string
1≤K≤30
1) Output satisfies valid partition properties for m = 3.
2) Output satisfies valid partition properties for m = 3.
3) No valid partition is possible.Please note that "dsda-svvc-jkx" is not a valid partition because there needs to be at least K groups