<reponame>wasi0013/Python-CodeBase
import re
for _ in[0]*int(input()):
    s=re.split("(\d+)",input())
    print(s)
    

import re
for _ in[0]*int(input()):
    s=re.split("(\d+)",input())
    print(s)