class Armstrong2{
public static void main(String[] args){
int armCounter=0;
for(int j=1;j<=100000000;j++){
int num = j;
int temp = num;
int res=0;
int pc=0;
while(temp>0){
pc++;
temp/=10;
}
//System.out.println("length of num = "+pc);
temp=num;
while(temp>0){
int rem = temp%10;
//System.out.println("temp : "+temp+" , rem = "+rem);
int remRes = 1;
if(pc>1){
for(int i=0;i