<>;($a,$b,$c)=glob<>;$/=$";($%-=++$d[$%]-length)>=$c+$b+$a?$\+=$d[$%-$c-$b-$a]&$d[$%-$c-$b]&$d[$%-$c]:0for<>;print