4115. Words

Naive函数字符串

时间限制:2000 ms

内存限制:512 MiB

题面

Input a string (which is composed of English letters, digit characters, and spaces), and print the words (substrings of consecutive letters) and numbers (substrings of consecutive digit characters) in the string. The length of the string is no more than 100100.

样例

输入

abc d01fg123

输出

abc
d
01
fg
123