<>;($a,$b,$c)=glob<>;${$%}=1,$\+=${($%-=length)+$c+$b+$a}&${$%+$c+$b}&${$%+$c}for glob<>;print