class WinScore{
    static final int totalScore=50;
    static final int[] list={2,3,4,5,6,7,8};
    public static int methodNum=0;

    static void visitTree( int achieved , int index){
            if (achieved >= totalScore ){
                    return;
            }
            for ( int i=index; i< list.length; i++ ){
                    if ( achieved + list[i] == totalScore ) {
                            methodNum++;
                    }else if (  achieved + list[i] < totalScore ){
                            visitTree( achieved + list[i], i );
                    }
            }
    }
    public static void main( String[] args ){
            visitTree(0, 0);
            System.out.println("number of methods are:" + methodNum );

    }
}