public static void main ( String [] args ) {
	
	int [][] data = new int[5][5];
	int sum = 0;

	for ( int i = 5; i<=1001; i+=2 ) {
	    
	    data = new int[i][i];	   
	    data[0][i-1] = i * i;

	    for ( int j=i-2; j>=0; j-- ) {
		data[0][j] = i*(i-1)+1+j;
	    }
	    for ( int j=1; j<i; j++ ) {
		data[j][0] = data[0][0]-j;
	    }
	    for ( int j=1; j<i; j++ ) {
		data[i-1][j] = data[i-1][0]-j;
	    }
	    for ( int j=i-2; j>0; j-- ) {
		data[j][i-1] = data[i-1][i-1] - i + 1 + i;
	    }

	    sum += data[0][0] + data[i-1][0]+data[0][i-1]+data[i-1][i-1];
	}

	System.out.println(sum+1+3+5+7+9);
    }