a=input()
b=''
c=''
for i in a:
if i in ['1','2','3','4','5','6','7','8','9']:
c+=i
else:
b+=i
if not c :
c=0
b = b.replace(' ', '')
print(c,str.upper(b))
import re
str=input()
newstr="".join(re.findall('(\d+)',str))+' '+"".join(re.findall('[^\d+]',str)).upper()
print(newstr)
有帮助请采纳,有问题继续交流,你的采纳是对我回答的最大的肯定和动力