#include <stdio.h>
#include<string.h>

int main() {
    char a[50]={0};
    int x=0,y=0;
    scanf("%s",a);
    x=strlen(a);
    for(int i=0;i<x;i++)
    {
        if(a[i]==a[i+1])
        {
            y=y+5;
        }
        else
        {
            y=y+10;
        }
    }
    printf("%d",y);
}

Embed on website

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