public static void main ( String [] args ) {
	int res = 0, sum = 0;
	int [] tmp = null;
	// as 9^5=59049, therefore max of i is less than 9^5*5=295245
	for ( int i=2; i<295246; i++ ) {
	    tmp = sep(i);
	    res = 0;
	    for ( int j=0; j<tmp.length; j++ ) {
		res += (int) Math.pow(tmp[j],5);
	    }
	    if ( res == i ) {
		sum += res;
	    }
	}

	System.out.println("sum="+sum);
    }