import java.util.Arrays;
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
char[] ch = sc.nextLine().toCharArray();
int[]dp = new int[ch.length];
dp[0] = 1;
dp[1] = 2;
for(int i=2;i<ch.length;++i) {
dp[i] += dp[i-1];
//看看前面那个能否 <=26
if(ch[i-1]<='2'&& ch[i]<='6') {
dp[i]+=dp[i-2];
}
}
System.out.println(dp[ch.length-1]);
}
public static int max(int... a) {
return Arrays.stream(a).max().getAsInt();
}
}
京公网安备 11010502036488号