```cpp
#include<iostream>
using namespace std;
int main ()
{
    int z=0;
    int count=0;
    int set=0;
    string str1="lol";
    string str2;
    cin>>str2;
    for(int x=0;x<str2.size();x++)
    {
        if(str1[z]==str2[x])
        {
            z++;
            count++;
            if(count==3)
                {
                    x--;
                    set++;
                    z=0;
                    count=0;
                }
                else
                continue;
        }
         else
                continue;

    }
    cout<<set;

    return 0;
}

```

In this problem, you should print a number of "lol" in string S.

Input
only string S (1<=|s|<=105).

Output
print number of "lol" in string S.

Examples

```
input
lolol
output
2

input
llpol
output
0

input
lloll
output
1

```

i have problem in testcase 2 as it give me 1 but output should be zero what condition i should use to make this not happen but without using any built in function ?