import java.util.Scanner; public class No785{ public static void main(String[]args) { int[] Next = new int[3]; for(int i = 0; i<3 ;i++) { String COLL =new Scanner(System.in).next(); int R = comb(COLL); Next [0] = R; } int put = Next[0]*Next[1]*Next[2]; System.out.println(put); } public static int comb(String COLL) { int leg = COLL.length(); int leng = ((leg-1)/2)+1; leng = leng^2; int comb =256-leng; return comb; } }