------Input------ 1 2 1 abcs-w1234-9s-4zz ------Answer----- abcsttuuvvw1234556677889s-4zz------Your output----- abcs-w123sttuuvvws-4zz