#include <stdio.h>

int main() {
    char str[101];
    int cnt=0, i=0;
    scanf("%s",str);
    while(str[i]) {
        if(str[i]=='c' && str[i+1]=='=') {
            cnt++;
            i+=2;
        } else if(str[i]=='c' && str[i+1]=='-') {
            cnt++;
            i+=2;
        } else if(str[i]=='d' && str[i+1]=='z' && str[i+2]=='=') {
            cnt++;
            i+=3;
        } else if(str[i]=='d' && str[i+1]=='-') {
            cnt++;
            i+=2;
        } else if(str[i]=='l' && str[i+1]=='j') {
            cnt++;
            i+=2;
        } else if(str[i]=='n' && str[i+1]=='j') {
            cnt++;
            i+=2;
        } else if(str[i]=='s' && str[i+1]=='=') {
            cnt++;
            i+=2;
        } else if(str[i]=='z' && str[i+1]=='=') {
            cnt++;
            i+=2;
        } else {
            cnt++;
            i++;
        }
    }
    printf("%d",cnt);
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: