by@drafear
WA
883ms
a,*b,c=open(0) i=a.find("T") d=c.rstrip()+"*"*i print(a*len(b)+d[:i+1])
T K
T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T K*********