https://www.acmicpc.net/problem/16968
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
string arr;
cin >> arr;
int count=1;
for(int i=0;i<arr.length();i++){
if(i==0){
if(arr[i]=='c') count*=26;
else count*=10;
}
else{
if(arr[i]==arr[i-1]){
if(arr[i]=='c') count*=25;
else count*=9;
}
else{
if(arr[i]=='c') count*=26;
else count*=10;
}
}
}
cout<<count;
}