#include <stdio.h>
#include <string.h>
int main() {
char s[101];
int count = 0;
scanf("%s", s);
int l = strlen(s);
for(int i=0; i<l; i++){
if (s[i] == 'c') {
if (s[i+1] == '=')
i++;
else if (s[i+1] == '-')
i++;
}
else if (s[i] == 'd') {
if (s[i+1] == 'z' && s[i+2] == '=')
i+=2;
else if (s[i+1] == '-')
i++;
}
else if (s[i] == 'l') {
if (s[i+1] == 'j')
i++;
}
else if (s[i] == 'n') {
if (s[i+1] == 'j')
i++;
}
else if (s[i] == 's') {
if (s[i+1] == '=')
i++;
}
else if (s[i] == 'z') {
if (s[i+1] == '=')
i++;
}
count++;
}
printf("%d", count);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: