t=gets.index "T" s=1 s+=1 while !u=gets.index("K") k=" "*u puts k+"="*(t-u)+" "+(k+"= ")*s