String all = "" ;
for(int i = 1 ; i <= 10000 ; i++)
{
int temp = 0 ;
for(int j = 1 ; j < i ; j++)
{
if(i%j==0)
temp += j ;
}
if(temp == i)
all += i+"," ;
}
System.out.println(all.substring(0,all.length()-1));
for(int 1=0;i<10000;i++){sys(i);}