Result

AC

Duration

517ms

Code [DL]

<?php
$s=substr_count(readline(),"tok");for($i=0;$i<$s;$i++)echo"T";

stdin

kyokyotototokyokyokyokyotokyotototokyotokyokyototo

stdout

TTTT

stderr

strace