https://www.acmicpc.net/problem/16968
arr=input()
count=1
for i in range(len(arr)):
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
print(count)