You are given a string and an integer . Print the valid partition of the string. A valid partition for a provided and satisfies the following properties:
If a valid partition is not possible, then print -1.
Print the strings in the partitions that are separated by ''.
Input format
Output format
For each test case, print a single line containing the valid partition.
Constraints
where is the length of string
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