13749 - Brokenotkeyboardot   

Description

Noosik's friend Darwin has to submit an essay quickly but his keyboard is broken. For some reason, everytime he hits enter, it will type a string  instead. Help Noosik create a program for Darwin to split the essay.

Implement split string function and malloc a 2D array to store the splitted string and return it. Don't forget to free the memory space that was previously allocated. 

Hint: Be careful with the memory usage ! Dynamically allocate to avoid MLE

This is a partial judge program.

Input

The first line is a string s, that needs to be splitted.

The second line is a string z, that needs to be replaced.

20 < s < 500

< z < 10

Output

Output the strings splitted by followed by '\n' at the end of each splitted string.

Sample Input  Download

Sample Output  Download

Partial Judge Code

13749.c

Partial Judge Header

13749.h

Tags




Discuss