You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
379 B

#include <bits/stdc++.h>
using namespace std;
int cnt;
/**
asdfAcdcdfLanQiaoCsldfjsdLanqiAoxvcxvx
*/
int main() {
string a;
cin >> a;
for (int i = 0; i < a.size(); i++)
if (a[i] >= 'A' && a[i] <= 'Z')a[i] += 32;
for (int i = 0; i < a.size(); i++)
if (a.substr(i, 7) == "lanqiao") cnt++;
printf("%d", cnt);
return 0;
}