https://www.acmicpc.net/problem/16968
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
char arr[]=s.next().toCharArray();
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;
}
}
}
System.out.print(count);
}
}