lines>>.&{given $=$_~|($!//=$_) {1 while s/k\s/kk/;.say}}