public static void main(String[] args) {

        if (READ_FROM_STDIN == 1) {

            java.util.Scanner sc = new java.util.Scanner(System.in);

            n = sc.nextInt();
            s = sc.nextInt();

            sc.close();
        }
        
        if (s % 2 != 0) {
            System.out.println(0);
            return;
        }
        
        for (int i = 0; i < MAXN; i++) {
            for (int j = 0; j < MAXS; j++) {
                m[i][j] = new BigDecimal(0);
            }
        }

        for (int i = 0; i < MAXS; i++) {
            m[0][i] = new BigDecimal(0);
        }

        for (int i = 0; i < 10; i++) {
            m[1][i] = new BigDecimal(1);
        }

        int realS = s / 2;

        for (int i = 2; i <= n; i++) {

            for (int j = 0; j <= realS; j++) {
                
                for (int k = 0; k < Math.min(10, j + 1); k++) {

                    m[i][j] = m[i][j].add(m[i - 1][j - k]);
                }

            }
        }
        // m[n][realS]*m[n][realS];
        BigDecimal answer = m[n][realS];
        answer = answer.multiply(answer);

        System.out.println(answer);
    }