#include <stdio.h>
#include <string.h>
int main()
{
char str[100];
int first = -1, count = 0;
for (int i = 0; i < len; i++)
{
if (str[i] == 'k')
{
if (count == 0) {
first = i;
}
count++;
}
}
if (first == -1) {
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KaW50IG1haW4oKSAKewogICAgY2hhciBzdHJbMTAwXTsKICAgIHNjYW5mKCIlcyIsIHN0cik7CiAgICBpbnQgbGVuID0gc3RybGVuKHN0cik7CiAgICBpbnQgZmlyc3QgPSAtMSwgY291bnQgPSAwOwogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBsZW47IGkrKykgCgl7CiAgICAgICAgaWYgKHN0cltpXSA9PSAnaycpIAoJCXsKICAgICAgICAgICAgaWYgKGNvdW50ID09IDApIHsKICAgICAgICAgICAgICAgIGZpcnN0ID0gaTsKICAgICAgICAgICAgfQogICAgICAgICAgICBjb3VudCsrOwogICAgICAgICAgICBwcmludGYoIiVkICIsIGkpOwogICAgICAgIH0KICAgIH0KICAgIGlmIChmaXJzdCA9PSAtMSkgewogICAgICAgIHByaW50ZigiTm90IGZvdW5kISIpOwogICAgfQogICAgcmV0dXJuIDA7Cn0=