#Python 2, (削除) 81 (削除ここまで) 72 bytes
Python 2, (削除) 81 (削除ここまで) 72 bytes
a,b=sorted(input(),key=len)
for c in a:b=b.replace(c,"",1)
print a+"_"+b
#Python 2, (削除) 81 (削除ここまで) 72 bytes
a,b=sorted(input(),key=len)
for c in a:b=b.replace(c,"",1)
print a+"_"+b
Python 2, (削除) 81 (削除ここまで) 72 bytes
a,b=sorted(input(),key=len)
for c in a:b=b.replace(c,"",1)
print a+"_"+b
#Python 2, 81(削除) 81 (削除ここまで) 72 bytes
a,b=input()
if lenb=sorted(b)<leninput(a):a,b=b,akey=len)
for c in a:b=b.replace(c,"",1)
print a+"_"+b
#Python 2, 81 bytes
a,b=input()
if len(b)<len(a):a,b=b,a
for c in a:b=b.replace(c,"",1)
print a+"_"+b
#Python 2, (削除) 81 (削除ここまで) 72 bytes
a,b=sorted(input(),key=len)
for c in a:b=b.replace(c,"",1)
print a+"_"+b
#Python 2, 81 bytes
a,b=input()
if len(b)<len(a):a,b=b,a
for c in a:b=b.replace(c,"",1)
print a+"_"+b