https://www.acmicpc.net/problem/16968
using System;
class Program
{
static void Main() {
string arr=Console.ReadLine();
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;
}
}
}
Console.Write(count);
}
}