public class test1{

static String e="2718281828459045235360287471352662497757247093699959574966967627724076630353547594571382178525166427427466391932003059921817413596629043572900334295260595630738132328627943490763233829880753195251019011573834187930702154089149934884167509";

public static void main(String arg[]){
char d[] = e.toCharArray();

char t[] = new char[10];
int total=0;

for(int i=0;i<d.length-10;i++){
  total=0;
  for(int j=0;j<10;j++) {
    
    t[j]=d[j+i];
    total+=t[j];
  }
// ints sum to 49 or char sums to 529
  if(total==529) System.out.println(t);
}
}

}
